Browse Source

Improved if condition

Tobias Reich 10 years ago
parent
commit
a8d792dcf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/modules/Photo.php

+ 1 - 1
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;
 		}