From abf08ecdb046202de8b5abf0392b4b76a5d0f89a Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 5 Nov 2014 11:45:43 +0100 Subject: [PATCH] warn about non-configured search adapter during indexing --- scripts/index.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.30.2