Aleksander Machniak
2016-05-04 344b0af9c6c2f6531504dbc8363faa54ce9c6440
program/lib/Roundcube/rcube_contacts.php
@@ -542,7 +542,7 @@
     * @param mixed $id    Record identifier(s)
     * @param bool  $assoc Enables returning associative array
     *
     * @return mixed Result object with all record fields or False if not found
     * @return rcube_result_set|array Result object with all record fields
     */
    function get_record($id, $assoc = false)
    {
@@ -559,6 +559,8 @@
            $id,
            $this->user_id
        );
        $this->result = null;
        if ($sql_arr = $this->db->fetch_assoc()) {
            $record = $this->convert_db_data($sql_arr);
@@ -707,7 +709,7 @@
            $this->result = null;  // clear current result (from get_record())
        }
        return $updated ? true : false;
        return !empty($updated);
    }
    /**