Merge remote-tracking branch 'mike/master' into dev

This commit is contained in:
Mario Vavti 2018-01-10 11:39:02 +01:00
commit 46cc360e4e
3 changed files with 6 additions and 4 deletions

View File

@ -114,8 +114,9 @@ function getRemoteFileSize($url)
return strlen($data);
});
$result = curl_exec($ch);
$info = curl_getinfo($ch);
curl_exec($ch);
curl_getinfo($ch);
curl_close($ch);
return $size;
}

View File

@ -49,6 +49,7 @@ class Video {
$cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmpfile . '[0]') . ' -thumbnail ' . $width . 'x' . $height . ' ' . escapeshellarg(PROJECT_BASE . '/' . $outfile);
// logger('imagick thumbnail command: ' . $cmd);
/** @scrutinizer ignore-unhandled */
@exec($cmd);
if(! file_exists($outfile)) {

View File

@ -11,8 +11,8 @@ class Forums {
$o = '';
if(is_array($arr) && array_key_exists('limit',$arr))
$limit = " limit " . intval($limit) . " ";
if(is_array($arr) && array_key_exists('limit',$arr) && intval($arr['limit']) >= 0)
$limit = " limit " . intval($arr['limit']) . " ";
else
$limit = '';