Skip to content

Commit

Permalink
Merge pull request #215 from quentinwolf/patch-1
Browse files Browse the repository at this point in the history
PHP 8.2 warnings
  • Loading branch information
JamesHeinrich authored Jul 11, 2023
2 parents 824fa20 + de946a8 commit 4036365
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpthumb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,8 @@ public function ImageMagickWhichConvert() {
if (($cachedwhichconvertstring = @file_get_contents($IMwhichConvertCacheFilename)) !== false) {
$WhichConvert = $cachedwhichconvertstring;
} else {
$WhichConvert = trim(phpthumb_functions::SafeExec('which convert'));
$execResult = phpthumb_functions::SafeExec('which convert');
$WhichConvert = $execResult !== null ? trim($execResult) : null;
@file_put_contents($IMwhichConvertCacheFilename, $WhichConvert);
@chmod($IMwhichConvertCacheFilename, $this->getParameter('config_file_create_mask'));
}
Expand Down

0 comments on commit 4036365

Please sign in to comment.