Thomas Bruederli
2012-08-14 a1303514933afe2d867067e4b95412c79652c89b
program/include/rcube_contacts.php
@@ -36,7 +36,7 @@
    /**
     * Store database connection.
     *
     * @var rcube_mdb2
     * @var rcube_db
     */
    private $db = null;
    private $user_id = 0;
@@ -934,7 +934,9 @@
                $contact_id
            );
            if (!$this->db->db_error)
            if ($error = $this->db->is_error())
                $this->set_error(self::ERROR_SAVING, $error);
            else
                $added++;
        }
@@ -988,9 +990,10 @@
                $checkname);
            // append number to make name unique
            if ($hit = $this->db->num_rows($sql_result))
            if ($hit = $this->db->fetch_array($sql_result)) {
                $checkname = $name . ' ' . $num++;
        } while ($hit > 0);
            }
        } while ($hit);
        return $checkname;
    }