Wip command center

This commit is contained in:
Daniel Barbero Martin 2021-05-31 14:58:36 +02:00
parent 33618af381
commit 3a85c69043
2 changed files with 2 additions and 3 deletions

View File

@ -267,7 +267,6 @@ if (empty($id_message) === false) {
switch ($tab) {
case 'list':
default:
include_once $config['homedir'].'/godmode/setup/os.list.php';
break;

View File

@ -1622,12 +1622,12 @@ function mysql_db_process_sql_update_multiple($table, $values, $only_query)
foreach ($values as $field => $update) {
$query = sprintf('UPDATE `%s` SET', $table);
$query .= sprintf(' `%s` = CASE `%s`', $field, $field);
foreach ($update as $set => $where) {
foreach ($update as $where => $set) {
$query .= sprintf(' WHEN "%s" THEN "%s"', $where, $set);
}
$query .= sprintf(' ELSE `%s` END', $field);
$query .= sprintf(' WHERE `%s` IN (%s)', $field, '"'.implode('","', $update).'"');
$query .= sprintf(' WHERE `%s` IN (%s)', $field, '"'.implode('","', array_keys($update)).'"');
if ($only_query === true) {
$res[] = $query;