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:
@@ -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
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user