aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-11-05 11:45:43 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-11-05 11:45:43 +0100
commitabf08ecdb046202de8b5abf0392b4b76a5d0f89a (patch)
tree717c8c7d3a5a6e81d948ea3d6fd90e2cb3c4217f /scripts
parentaded6cfacd4a0aea061a120997880c3e3d5a9aed (diff)
downloadphorkie-abf08ecdb046202de8b5abf0392b4b76a5d0f89a.tar.gz
phorkie-abf08ecdb046202de8b5abf0392b4b76a5d0f89a.zip
warn about non-configured search adapter during indexing
Diffstat (limited to 'scripts')
-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