浏览代码

#1076 Notice: Undefined index: cmt_id

Alex Trofimov 8 年之前
父节点
当前提交
04742b56ca
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      modules/base/general/classes/BxBaseModGeneralCmtsSearchResult.php

+ 1 - 1
modules/base/general/classes/BxBaseModGeneralCmtsSearchResult.php

@@ -58,7 +58,7 @@ class BxBaseModGeneralCmtsSearchResult extends BxBaseModGeneralSearchResult
 			));
 		}
 		else
-			return $oCmts->getComment($aData['cmt_id'], array(), array('type' => BX_CMT_DISPLAY_FLAT, 'view_only' => true));
+			return $oCmts->getComment($aData['id'], array(), array('type' => BX_CMT_DISPLAY_FLAT, 'view_only' => true));
     }
 
     function displayResultBlock ()