warn about non-configured search adapter during indexing
authorChristian Weiske <cweiske@cweiske.de>
Wed, 5 Nov 2014 10:45:43 +0000 (11:45 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 5 Nov 2014 10:45:43 +0000 (11:45 +0100)
scripts/index.php

index 1f7a7ac..ea07e60 100644 (file)
@@ -13,6 +13,12 @@ if ($GLOBALS['phorkie']['cfg']['setupcheck']) {
 
 
 $db = new Database();
+
+if ($db->prefix == '\phorkie\Database_Adapter_Null') {
+    echo "Error: No search adapter configured.\n";
+    exit(1);
+}
+
 $idx = $db->getIndexer();
 
 //create mapping