Fix warning in fileAdminView when upload target type does not exist

This commit is contained in:
Kijin Sung 2017-02-22 23:11:29 +09:00
parent 8ad6f40abd
commit ad21b1e706

View file

@ -127,7 +127,7 @@ class fileAdminView extends file
}
}
if($file->upload_target_type)
if($file->upload_target_type && is_array(${$file->upload_target_type.'_srls'}))
{
if(!in_array($file->upload_target_srl, ${$file->upload_target_type.'_srls'}))
{