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:
Crack
2010-07-30 19:44:59 +02:00
parent 9adc2597c5
commit 157c4fb775
2 changed files with 2 additions and 2 deletions

View File

@@ -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);