Skip to content

Commit b77b0d2

Browse files
committed
Search: #fix error when Xapian search is activate - code commented since the functionnality is not available - refs BT#22425
1 parent 825bd84 commit b77b0d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public/main/lp/learnpathItem.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ public function __construct($id, $item_content = null)
173173
}
174174
}
175175

176+
/*
177+
// Xapian full text search does not work
178+
// and if the option is activated it generates an error
179+
// So I comment this part of the code to avoid unnecesary errors
176180
// Get search_did.
177181
if ('true' === api_get_setting('search_enabled')) {
178182
$tbl_se_ref = Database::get_main_table(TABLE_MAIN_SEARCH_ENGINE_REF);
@@ -200,6 +204,7 @@ public function __construct($id, $item_content = null)
200204
$this->search_did = (int) $se_ref['search_did'];
201205
}
202206
}
207+
*/
203208
}
204209
}
205210

0 commit comments

Comments
 (0)