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);
|
||||
|
@@ -39,7 +39,7 @@ foreach (array_keys($forms) as $formset) {
|
||||
'active' => ($script_name == 'prefs_forms.php' && $formset == $form_param));
|
||||
echo PMA_generate_html_tab($tab, array('form' => $formset)) . "\n";
|
||||
}
|
||||
echo '</ul>';
|
||||
echo '</ul><div class="clearfloat"></div>';
|
||||
|
||||
// show "configuration saved" message and reload navigation frame if needed
|
||||
if (!empty($_GET['saved'])) {
|
||||
|
Reference in New Issue
Block a user