Squash bugs
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 29 Oct 2016 10:24:04 +0000 (10:24 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 29 Oct 2016 10:24:04 +0000 (10:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14586 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/abook_database.php

index 1bc5fa4f85e905184f7112fe3d8408edcbf901bc..07892c458c1a377eba158bb23cc726361a534d23 100644 (file)
@@ -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