alecpl
2009-06-01 977078372e5183cfc0f0175a211b34e8c6b53583
- use explode() instead of deprecated in php5.3 split()


2 files modified
4 ■■■■ changed files
program/include/rcube_contacts.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_imap.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_contacts.php
@@ -154,7 +154,7 @@
    {
      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)
program/include/rcube_imap.php
@@ -303,7 +303,7 @@
    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;