diff --git a/pandora_console/godmode/setup/os.php b/pandora_console/godmode/setup/os.php index 08a637ebba..f347f9f01e 100644 --- a/pandora_console/godmode/setup/os.php +++ b/pandora_console/godmode/setup/os.php @@ -267,7 +267,6 @@ if (empty($id_message) === false) { switch ($tab) { case 'list': - default: include_once $config['homedir'].'/godmode/setup/os.list.php'; break; diff --git a/pandora_console/include/db/mysql.php b/pandora_console/include/db/mysql.php index cf3851974a..005e28ce90 100644 --- a/pandora_console/include/db/mysql.php +++ b/pandora_console/include/db/mysql.php @@ -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;