1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Use namespace in callbacks

This commit is contained in:
Jakub Vrana
2025-03-05 12:28:01 +01:00
parent 50e7a65e6e
commit e1e085f312
12 changed files with 27 additions and 27 deletions

View File

@@ -143,7 +143,7 @@ if (isset($_GET["simpledb"])) {
function _extractIds($table, $queryWhere, $limit) {
$return = array();
if (preg_match_all("~itemName\(\) = (('[^']*+')+)~", $queryWhere, $matches)) {
$return = array_map('idf_unescape', $matches[1]);
$return = array_map('Adminer\idf_unescape', $matches[1]);
} else {
foreach (sdb_request_all('Select', 'Item', array('SelectExpression' => 'SELECT itemName() FROM ' . table($table) . $queryWhere . ($limit ? " LIMIT 1" : ""))) as $item) {
$return[] = $item->Name;