pdontthink 8 gadi atpakaļ
vecāks
revīzija
590ef3fe1b
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      functions/abook_database.php

+ 2 - 2
functions/abook_database.php

@@ -660,8 +660,8 @@ class abook_database extends addressbook_backend {
                 else
                     return $this->set_error(sprintf(_("Database error: %s"), _("Could not prepare query")));
             }
-            array_unshift($where_clause_args[], $this->owner);
-            if (!($res = $sth->execute(array_array($where_clause_args)))) {
+            array_unshift($where_clause_args, $this->owner);
+            if (!($res = $sth->execute($where_clause_args))) {
                 if ($pdo_show_sql_errors)
                     return $this->set_error(sprintf(_("Database error: %s"), implode(' - ', $sth->errorInfo())));
                 else