diff --git a/webui/model/folder/folder.php b/webui/model/folder/folder.php index 79524a81..0e883ef4 100644 --- a/webui/model/folder/folder.php +++ b/webui/model/folder/folder.php @@ -227,9 +227,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() == 1) { - $query = $this->sphx->query("UPDATE " . SPHINX_MAIN_INDEX . " SET folder=$folder_id WHERE id=$id"); - } + $query = $this->sphx->query("UPDATE " . SPHINX_MAIN_INDEX . " SET folder=$folder_id WHERE id=$id"); }