aboutsummaryrefslogtreecommitdiff
path: root/scripts/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/index.php')
-rw-r--r--scripts/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/index.php b/scripts/index.php
index 1f7a7ac..ea07e60 100644
--- a/scripts/index.php
+++ b/scripts/index.php
@@ -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