alecpl
2009-07-20 4307ccd82b259e22d65a9468b71cfe5786a456de
- prevent PREPARE error on postgres when inserting non-Unicode characters


1 files modified
4 ■■■■ changed files
program/include/rcube_contacts.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_contacts.php
@@ -268,8 +268,8 @@
      $this->db->query(
        "INSERT INTO ".$this->db_name."
         (user_id, changed, del, ".join(', ', $a_insert_cols).")
         VALUES (?, ".$this->db->now().", 0, ".join(', ', $a_insert_values).")",
        $this->user_id);
         VALUES (".intval($this->user_id).", ".$this->db->now().", 0, ".join(', ', $a_insert_values).")"
        );
        
      $insert_id = $this->db->insert_id(get_sequence_name('contacts'));
    }