mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:20:11 +01:00
improved sphinx update
This commit is contained in:
parent
27087ec3f6
commit
2008ba284b
@ -14,7 +14,7 @@
|
||||
|
||||
#define VERSION "1.2.0-master"
|
||||
|
||||
#define BUILD 921
|
||||
#define BUILD 922
|
||||
|
||||
#define HOSTID "mailarchiver"
|
||||
|
||||
|
@ -198,10 +198,10 @@ 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));
|
||||
|
||||
//$query = $this->sphx->query("UPDATE " . SPHINX_MAIN_INDEX . " SET folder=? WHERE id=?", array($folder_id, $id));
|
||||
if($this->db->countAffected() == 0) {
|
||||
$query = $this->sphx->query("UPDATE " . SPHINX_MAIN_INDEX . " SET folder=$folder_id WHERE id=$id");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function add_folder($name = '') {
|
||||
|
Loading…
Reference in New Issue
Block a user