git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Work around bug in twig 1
[phorkie.git]
/
scripts
/
index.php
diff --git
a/scripts/index.php
b/scripts/index.php
index 1f7a7ac5ce8885869a090bc4a17238a6c7cc7f31..ea07e60a38544965e5b26911778723eaff3bddbd 100644
(file)
--- 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