From 445b9b133f9e88099422892693966ae2a6f5212e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Mon, 20 Jun 2011 23:11:39 +0200 Subject: [PATCH] Missing space in SQL query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tänzer --- manager/application/models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/application/models/User.php b/manager/application/models/User.php index f68b352..55eeadb 100644 --- a/manager/application/models/User.php +++ b/manager/application/models/User.php @@ -135,7 +135,7 @@ class Default_Model_User { */ public function getAssurerStatus() { $query = 'SELECT 1 FROM `users` WHERE `users`.`id` = :user AND '. - '`assurer_blocked` = 0 AND'. + '`assurer_blocked` = 0 AND '. 'EXISTS(SELECT * FROM `cats_passed` AS `cp`, `cats_variant` AS `cv` '. 'WHERE `cp`.`variant_id` = `cv`.`id` AND `cv`.`type_id` = 1 AND '.