Merge branch 'release-0.7' of github.com:roundcube/roundcubemail into release-0.7
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Fix compatybility with MDB2 2.5.0b4 (#1488779) |
| | | - Fix lower-casing email address on replies (#1488598) |
| | | - Fix so subscribed non-existing/non-accessible shared folder can be unsubscribed |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | // remove duplicates |
| | | if ($flat && !empty($out)) { |
| | | $out = array_unique($out); |
| | | } |
| | | |
| | | return $out; |
| | | } |
| | | |
| | |
| | | |
| | | for ($i = 0; $i < $entries['count']; $i++) { |
| | | $rec = $this->_ldap2result($entries[$i]); |
| | | foreach (array('email', 'name') as $f) { |
| | | $val = mb_strtolower($rec[$f]); |
| | | foreach ($fields as $f) { |
| | | foreach ((array)$rec[$f] as $val) { |
| | | $val = mb_strtolower($val); |
| | | switch ($mode) { |
| | | case 1: |
| | | $got = ($val == $search); |
| | |
| | | if ($got) { |
| | | $this->result->add($rec); |
| | | $this->result->count++; |
| | | break; |
| | | break 2; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | */ |
| | | function is_connected() |
| | | { |
| | | return PEAR::isError($this->db_handle) ? false : $this->db_connected; |
| | | return is_a($this->db_handle, 'PEAR_Error') ? false : $this->db_connected; |
| | | } |
| | | |
| | | |
| | |
| | | else { |
| | | $params = (array)$params; |
| | | $q = $this->db_handle->prepare($query, null, $mode=='w' ? MDB2_PREPARE_MANIP : null); |
| | | if ($this->db_handle->isError($q)) { |
| | | if (MDB2::isError($q)) { |
| | | $this->db_error = true; |
| | | $this->db_error_msg = $q->userinfo; |
| | | |
| | |
| | | |
| | | $id = $this->db_handle->lastInsertID($table); |
| | | |
| | | return $this->db_handle->isError($id) ? null : $id; |
| | | return MDB2::isError($id) ? null : $id; |
| | | } |
| | | |
| | | |