diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-06 10:18:39 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-07-06 10:18:39 +0400 |
commit | a6339fe31096691beacbcfadca90d7dd7bb24a26 (patch) | |
tree | 2a27d228b4131d30465324945afd23ed901cff24 /libs/HTML/QuickForm | |
parent | a1c38bdf28b486960907df6e611a9703cab4aca9 (diff) |
fixes #845 - php 5.3 backward incompatibilities and deprecated functionality;
quick fixes #851 - unit tests; also fix redirect error in Installation when deleting existing tables
Diffstat (limited to 'libs/HTML/QuickForm')
-rw-r--r-- | libs/HTML/QuickForm/select.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/HTML/QuickForm/select.php b/libs/HTML/QuickForm/select.php index 1178a042d9..ac75a72006 100644 --- a/libs/HTML/QuickForm/select.php +++ b/libs/HTML/QuickForm/select.php @@ -114,7 +114,7 @@ class HTML_QuickForm_select extends HTML_QuickForm_element { function setSelected($values) { if (is_string($values) && $this->getMultiple()) { - $values = split("[ ]?,[ ]?", $values); + $values = preg_split('/[ ]*,[ ]*/', $values); } if (is_array($values)) { $this->_values = array_values($values); |