fixed some fields not saving due to equality conversions (eg. 0 == 'auto')
fix user preferences menu display when tabs don't fit on screen
This commit is contained in:
@@ -165,7 +165,7 @@ class ConfigFile
|
||||
// remove if the path isn't protected and it's empty or has a default value
|
||||
$default_value = $this->getDefault($canonical_path);
|
||||
if (!isset($this->persistKeys[$canonical_path])
|
||||
&& (($value == $default_value) || (empty($value) && empty($default_value)))) {
|
||||
&& (($value === $default_value) || (empty($value) && empty($default_value)))) {
|
||||
PMA_array_remove($path, $_SESSION[$this->id]);
|
||||
} else {
|
||||
PMA_array_write($path, $_SESSION[$this->id], $value);
|
||||
|
Reference in New Issue
Block a user