From 46ec86a070d65e51fbc6ad9cb46fd04b8d5d296d Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 11 Sep 2012 14:56:01 +0200 Subject: [PATCH] added folder column to a query to make tagging working --- webui/model/search/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 5e4e9d4c..ba0bdb7e 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -550,7 +550,7 @@ class ModelSearchSearch extends Model { } else { if(ENABLE_FOLDER_RESTRICTIONS == 1) { - $query = $this->sphx->query("SELECT id FROM " . SPHINX_MAIN_INDEX . " WHERE id IN (" . implode(",", $id) . ")"); + $query = $this->sphx->query("SELECT id, folder FROM " . SPHINX_MAIN_INDEX . " WHERE id IN (" . implode(",", $id) . ")"); } else { $arr = array_merge($arr, $a, $a);