From 7d7f382cc4769a1252e44df2fd94e9be03760dab Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 25 Jan 2005 12:49:45 +0000 Subject: [PATCH] MySQL < 4.0.11 doesn't allow JOIN with ON - INNER JOIN is the most accurate description of what we want anyway. --- lib/foldermanagement/Folder.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foldermanagement/Folder.inc b/lib/foldermanagement/Folder.inc index 3e9bcc5..3b8c392 100644 --- a/lib/foldermanagement/Folder.inc +++ b/lib/foldermanagement/Folder.inc @@ -786,7 +786,7 @@ class Folder extends KTEntity { // Then, we update the documents in our subfolders $sFolderIDs = $this->generateFolderIDs($this->getID()); $sFolderIDs .= '%'; - $sQuery = "SELECT D.id AS id FROM documents AS D JOIN folders AS F on D.folder_id = F.id WHERE F.parent_folder_ids LIKE ?"; + $sQuery = "SELECT D.id AS id FROM documents AS D INNER JOIN folders AS F on D.folder_id = F.id WHERE F.parent_folder_ids LIKE ?"; $aParams = array($sFolderIDs); $aDocumentIDs = DBUtil::getResultArrayKey(array($sQuery, $aParams), 'id'); -- libgit2 0.21.4