From 6fb8505721429ca17996d8264403f333591b9cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 9 Feb 2011 13:55:25 +0100 Subject: [PATCH] Use correct type when storing preferences. We should not use the value, but the key. Value stores descriptions, while key is actually the thing stored in settings. --- libraries/config/FormDisplay.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/config/FormDisplay.class.php b/libraries/config/FormDisplay.class.php index 41c421fb4..9e84075c1 100644 --- a/libraries/config/FormDisplay.class.php +++ b/libraries/config/FormDisplay.class.php @@ -468,7 +468,7 @@ class FormDisplay // (allows to skip 0 == 'string' equalling to true) or identity (for string-string) if (($vk == $value && !(is_numeric($value_cmp) xor is_numeric($vk))) || $vk === $value) { - settype($value, gettype($v)); + settype($value, gettype($vk)); return true; } }