Commit f6837888423a938c02ed455cf7c7dcad1f66c849
1 parent
dbe064c5
MySQL < 4.0.11 doesn't allow JOIN with ON - INNER JOIN is the most
accurate description of what we want anyway. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3204 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/foldermanagement/Folder.inc
| ... | ... | @@ -786,7 +786,7 @@ class Folder extends KTEntity { |
| 786 | 786 | // Then, we update the documents in our subfolders |
| 787 | 787 | $sFolderIDs = $this->generateFolderIDs($this->getID()); |
| 788 | 788 | $sFolderIDs .= '%'; |
| 789 | - $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 ?"; | |
| 789 | + $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 ?"; | |
| 790 | 790 | $aParams = array($sFolderIDs); |
| 791 | 791 | $aDocumentIDs = DBUtil::getResultArrayKey(array($sQuery, $aParams), 'id'); |
| 792 | 792 | ... | ... |