mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Fix saving NULL value
This reverts commit ed130065
.
Conflicts:
adminer/drivers/mongo.inc.php
adminer/include/functions.inc.php
This commit is contained in:
@@ -285,13 +285,13 @@ function get_password() {
|
||||
return $return;
|
||||
}
|
||||
|
||||
/** Shortcut for $driver->quote($string)
|
||||
/** Shortcut for $connection->quote($string)
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
function q($string) {
|
||||
global $driver;
|
||||
return $driver->quote($string);
|
||||
global $connection;
|
||||
return $connection->quote($string);
|
||||
}
|
||||
|
||||
/** Get list of values from database
|
||||
@@ -937,7 +937,7 @@ function process_input($field) {
|
||||
return ($field["on_update"] == "CURRENT_TIMESTAMP" ? idf_escape($field["field"]) : false);
|
||||
}
|
||||
if ($function == "NULL") {
|
||||
$value = null;
|
||||
return "NULL";
|
||||
}
|
||||
if ($field["type"] == "set") {
|
||||
return array_sum((array) $value);
|
||||
|
Reference in New Issue
Block a user