Improved if condition

This commit is contained in:
Tobias Reich 2014-05-30 16:57:15 +02:00
parent 1d7d852ddd
commit a8d792dcf1

View File

@ -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;
}