mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +01:00
typo fix in folder/folder
This commit is contained in:
parent
2008ba284b
commit
5ad6119780
@ -198,7 +198,7 @@ class ModelFolderFolder extends Model {
|
|||||||
|
|
||||||
public function update_message_folder($id = 0, $folder_id = 0) {
|
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));
|
$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");
|
$query = $this->sphx->query("UPDATE " . SPHINX_MAIN_INDEX . " SET folder=$folder_id WHERE id=$id");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user