Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs/HTML
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2009-07-06 10:18:39 +0400
committerrobocoder <anthon.pang@gmail.com>2009-07-06 10:18:39 +0400
commit6cf35ab7c47fe1933870cb246a4860ab185549b0 (patch)
tree2a27d228b4131d30465324945afd23ed901cff24 /libs/HTML
parent5e3c9031c91ac3efd658180199f8217b9dfd0bbe (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 git-svn-id: http://dev.piwik.org/svn/trunk@1287 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/HTML')
-rw-r--r--libs/HTML/QuickForm.php2
-rw-r--r--libs/HTML/QuickForm/select.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/HTML/QuickForm.php b/libs/HTML/QuickForm.php
index d589c9b4cf..774416bcc6 100644
--- a/libs/HTML/QuickForm.php
+++ b/libs/HTML/QuickForm.php
@@ -983,7 +983,7 @@ class HTML_QuickForm extends HTML_Common
function updateElementAttr($elements, $attrs)
{
if (is_string($elements)) {
- $elements = split('[ ]?,[ ]?', $elements);
+ $elements = preg_split('/[ ]*,[ ]*/', $elements);
}
foreach (array_keys($elements) as $key) {
if (is_object($elements[$key]) && is_a($elements[$key], 'HTML_QuickForm_element')) {
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);