- use explode() instead of deprecated in php5.3 split()

release-0.6
alecpl 15 years ago
parent d51c93b43e
commit 977078372e

@ -154,7 +154,7 @@ class rcube_contacts extends rcube_addressbook
{
if ($col == 'ID' || $col == $this->primary_key)
{
$ids = !is_array($value) ? split(',', $value) : $value;
$ids = !is_array($value) ? explode(',', $value) : $value;
$add_where[] = $this->primary_key.' IN ('.join(',', $ids).')';
}
else if ($strict)

@ -303,7 +303,7 @@ class rcube_imap
if (is_array($str) && $msgs == null)
list($str, $msgs, $charset, $sort_field) = $str;
if ($msgs != null && !is_array($msgs))
$msgs = split(',', $msgs);
$msgs = explode(',', $msgs);
$this->search_string = $str;
$this->search_set = $msgs;

Loading…
Cancel
Save