From: Christian Weiske Date: Wed, 5 Nov 2014 10:45:43 +0000 (+0100) Subject: warn about non-configured search adapter during indexing X-Git-Tag: v0.5.0~18 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/abf08ecdb046202de8b5abf0392b4b76a5d0f89a warn about non-configured search adapter during indexing --- 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