mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 04:01:58 +01:00
Let the user update the sphinx main index even if the message doesnt exist in the folder_message table
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
fbbdce7f99
commit
5178c3e18b
@ -227,10 +227,8 @@ 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() == 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");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function add_folder($name = '') {
|
public function add_folder($name = '') {
|
||||||
|
Loading…
Reference in New Issue
Block a user