From 3915777a5271df7c4fedd8ba9e19a1aa07bc987a Mon Sep 17 00:00:00 2001 From: Ashwin Jacob Date: Mon, 4 Jul 2016 11:47:01 -0500 Subject: [PATCH] Corrected setActiveFieldForAlbumsFromElement call on deletePhoto --- src/libraries/adapters/DatabaseMySql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/adapters/DatabaseMySql.php b/src/libraries/adapters/DatabaseMySql.php index 434f407b8..de7b0671e 100644 --- a/src/libraries/adapters/DatabaseMySql.php +++ b/src/libraries/adapters/DatabaseMySql.php @@ -141,7 +141,7 @@ public function deletePhoto($photo) $resPhoto = $this->db->execute("UPDATE `{$this->mySqlTablePrefix}photo` SET `active`=0 WHERE `id`=:id AND owner=:owner", array(':id' => $photo['id'], ':owner' => $this->owner)); - $this->setActiveFieldForAlbumsFromElement($photo['id'], 'photo', 0); + $this->setActiveFieldForAlbumsFromElement($photo['id'], 0); $this->setActiveFieldForTagsFromElement($photo['id'], 'photo', 0); return $resPhoto !== false;