diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-09 17:04:02 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-01-09 17:04:02 -0800 |
commit | 3ce79dd6e12c6eb7602649c93798883a2bef1e86 (patch) | |
tree | f26b38f565fed8a1652d1ddbe971cfc3835fde19 | |
parent | dfb75840b8b6fbe369f0b9097cd322832cc48108 (diff) | |
download | volse-hubzilla-3ce79dd6e12c6eb7602649c93798883a2bef1e86.tar.gz volse-hubzilla-3ce79dd6e12c6eb7602649c93798883a2bef1e86.tar.bz2 volse-hubzilla-3ce79dd6e12c6eb7602649c93798883a2bef1e86.zip |
scrutinizer mods
-rw-r--r-- | Zotlabs/Lib/Img_filesize.php | 5 | ||||
-rw-r--r-- | Zotlabs/Thumbs/Video.php | 1 | ||||
-rw-r--r-- | Zotlabs/Widget/Forums.php | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Img_filesize.php b/Zotlabs/Lib/Img_filesize.php index e7bef37e1..196697733 100644 --- a/Zotlabs/Lib/Img_filesize.php +++ b/Zotlabs/Lib/Img_filesize.php @@ -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; }
\ No newline at end of file diff --git a/Zotlabs/Thumbs/Video.php b/Zotlabs/Thumbs/Video.php index 05127355e..ff4d10a36 100644 --- a/Zotlabs/Thumbs/Video.php +++ b/Zotlabs/Thumbs/Video.php @@ -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)) { diff --git a/Zotlabs/Widget/Forums.php b/Zotlabs/Widget/Forums.php index 91b987746..0b90b9740 100644 --- a/Zotlabs/Widget/Forums.php +++ b/Zotlabs/Widget/Forums.php @@ -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 = ''; |