authorize all files in 9gag (test)

This commit is contained in:
lutranf
2014-12-23 15:27:00 +01:00
parent e5015bcf43
commit 091120d939
2 changed files with 7 additions and 4 deletions

View File

@@ -177,7 +177,7 @@ class ToolBox
elseif(!array_key_exists('extension', $asOutInfo)) $sOutPath .= '.'.$sImageExt; //folder + filename, but getting ext from file info
//New sizes
if(!in_array($sImageExt, $asImageExts)) $asResult['error'] = 'Wrong file type: '.$sImageExt;
if(!in_array($sImageExt, $asImageExts) && !empty($asImageExts)) $asResult['error'] = 'Wrong file type: '.$sImageExt;
else
{
list($iWidth, $iHeight) = getimagesize($sInPath);