From 36ef8f98da711404c52f401c7a5a06b9bcafc6c1 Mon Sep 17 00:00:00 2001 From: snakajima Date: Mon, 20 Apr 2015 21:45:55 +0900 Subject: [PATCH] Fix conditions of index action. --- Controller/BlocksController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/BlocksController.php b/Controller/BlocksController.php index d35b13d..d865301 100644 --- a/Controller/BlocksController.php +++ b/Controller/BlocksController.php @@ -84,8 +84,8 @@ public function index() { 'order' => array('Bbs.id' => 'desc'), 'conditions' => array( 'Block.id = Bbs.block_id', - 'Block.language_id = ' . $this->viewVars['languageId'], - 'Block.room_id = ' . $this->viewVars['roomId'], + 'Block.language_id' => $this->viewVars['languageId'], + 'Block.room_id' => $this->viewVars['roomId'], ), //'limit' => 1 )