From 880bb8c30a0c31c231fec64b1259ad0598c6e66b Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 7 Feb 2005 09:13:43 +0000 Subject: [PATCH] Pass the parameters through to the query to check if the document already exists in that location. --- lib/documentmanagement/Document.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/documentmanagement/Document.inc b/lib/documentmanagement/Document.inc index 3d80099..0fd48b8 100644 --- a/lib/documentmanagement/Document.inc +++ b/lib/documentmanagement/Document.inc @@ -646,7 +646,7 @@ class Document extends KTEntity { " AND folder_id = ?" . " AND status_id = ?"; $aParams = array($sFileName, $iFolderID, LIVE); - $sql->query($sQuery); + $sql->query(array($sQuery, $aParams)); if ($sql->next_record()) { return true; } -- libgit2 0.21.4