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 )