diff --git a/php/modules/Photo.php b/php/modules/Photo.php index 1aeaaa2..514fcf5 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -621,7 +621,7 @@ class Photo extends Module { # Call plugins $this->plugins(__METHOD__, 1, func_get_args()); - if ($error) { + if ($error===true) { Log::error($this->database, __METHOD__, __LINE__, $this->database->error); return false; }