This commit is contained in:
cgfhtw
2024-11-07 11:47:35 +01:00
parent 8c689418f7
commit f82ed6928a
13 changed files with 744 additions and 74 deletions
+4 -4
View File
@@ -95,7 +95,7 @@ class SearchBarLib
return error(array_map(function ($type) use ($p) {
return $p->t('search', 'error_missing_config', [
'type' => $type
]); // TODO(chris): phrase
]);
}, $missing));
}
$types = $tmp;
@@ -288,7 +288,7 @@ class SearchBarLib
if (!$table_config)
return error($this->_ci->search_phrases->t('search', 'error_missing_config', [
'type' => $name
])); // TODO(chris): phrase
]));
$errors = [];
if (!isset($table_config['table'])
@@ -298,7 +298,7 @@ class SearchBarLib
$errors[] = $this->_ci->search_phrases->t('search', 'error_invalid_config', [
'type' => $name,
'field' => 'table'
]); // TODO(chris): phrase
]);
}
if (!isset($table_config['primarykey'])
|| !is_string($table_config['primarykey'])
@@ -336,7 +336,7 @@ class SearchBarLib
'type' => $name,
'searchfield' => $searchfield,
'field' => 'field'
]); // TODO(chris): phrase
]);
}
if (!isset($config['comparison'])
|| !is_string($config['comparison'])