From 130b90b19c984c1b6add41b6437b2df49f0d502f Mon Sep 17 00:00:00 2001 From: conradverm Date: Wed, 17 Oct 2007 15:10:09 +0000 Subject: [PATCH] KTS-2505 "Database configuration issues cause horrible knowledgetree failure" Fixed. preventing early calls to the db --- search2/search/search.inc.php | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/search2/search/search.inc.php b/search2/search/search.inc.php index b1b83f0..2a76a95 100755 --- a/search2/search/search.inc.php +++ b/search2/search/search.inc.php @@ -229,6 +229,11 @@ class SearchHelper public static function getSavedSearches($userID) { + if (empty($default->db)) + { + return array(); + } + $sql = "SELECT id, name FROM search_saved WHERE type='S'"; // if we are not the system admin, then we get only ours or shared searches -- libgit2 0.21.4