From a8d792dcf1c224e739915e15b3b2ce7f5b6f3e58 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 30 May 2014 16:57:15 +0200 Subject: [PATCH] Improved if condition --- php/modules/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }