瀏覽代碼

Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

Angel Fernando Quiroz Campos 8 年之前
父節點
當前提交
69616113fa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/forum/forumfunction.inc.php

+ 1 - 1
main/forum/forumfunction.inc.php

@@ -1941,7 +1941,7 @@ function getPosts($forumInfo, $threadId, $orderDirection = 'ASC', $recursive = f
     }
 
     if ($filterModerated && $forumInfo['moderated'] == 1) {
-        $criteria->where(Criteria::expr()->eq('status', 1));
+        $criteria->andWhere(Criteria::expr()->eq('status', 1));
     }
 
     if ($recursive) {