Skip to content

Commit

Permalink
Merge pull request #202 from Maef/@-operator-fix-2
Browse files Browse the repository at this point in the history
Test if property is set when testing array (@ operator fix)
  • Loading branch information
JamesHeinrich authored Nov 27, 2022
2 parents 099cad6 + db87753 commit 2d18d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpthumb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public function setSourceImageResource($gdimg) {
public function setParameter($param, $value) {
if ($param == 'src') {
$this->setSourceFilename($this->ResolveFilenameToAbsolute($value));
} elseif (@is_array($this->$param)) {
} elseif (isset($this->$param) && is_array($this->$param)) {
if (is_array($value)) {
foreach ($value as $arraykey => $arrayvalue) {
array_push($this->$param, $arrayvalue);
Expand Down

0 comments on commit 2d18d18

Please sign in to comment.