Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
46cc360e4e
@ -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;
|
||||
}
|
@ -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)) {
|
||||
|
@ -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 = '';
|
||||
|
||||
|
Reference in New Issue
Block a user