lib/pear MDL-20876 fix deprecated split() calls to use explode, str_split or preg_split

Author: Jonathan Harker <[email protected]>
This commit is contained in:
Jonathan Harker
2010-07-20 01:16:55 +00:00
parent dbeee38cfc
commit fcbf4b6fac
5 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -945,7 +945,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')) {
@@ -1989,4 +1989,4 @@ class HTML_QuickForm_Error extends PEAR_Error {
// }}}
} // end class HTML_QuickForm_Error
?>
?>