From 5ad6119780d307ca648db048da37e5ce8fb83c7a Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 18 Sep 2015 15:26:17 +0200 Subject: [PATCH] typo fix in folder/folder --- webui/model/folder/folder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/folder/folder.php b/webui/model/folder/folder.php index 077acba1..411ac25f 100644 --- a/webui/model/folder/folder.php +++ b/webui/model/folder/folder.php @@ -198,7 +198,7 @@ class ModelFolderFolder extends Model { public function update_message_folder($id = 0, $folder_id = 0) { $query = $this->db->query("UPDATE `" . TABLE_FOLDER_MESSAGE . "` SET folder_id=? WHERE id=?", array($folder_id, $id)); - if($this->db->countAffected() == 0) { + if($this->db->countAffected() == 1) { $query = $this->sphx->query("UPDATE " . SPHINX_MAIN_INDEX . " SET folder=$folder_id WHERE id=$id"); } }