From bbfbb594549557f794015112dd3845d6b4f704ba Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Fri, 31 Jul 2015 08:53:09 +0200 Subject: [PATCH] bug 1391: fixed syntax in sql statement --- 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 83857ca..24b27ed 100644 --- a/manager/application/models/User.php +++ b/manager/application/models/User.php @@ -121,7 +121,7 @@ class Default_Model_User { $this->points = 100; $query = "SELECT COUNT(`points`) AS `total` FROM `notary` " . - "WHERE `from` = :user AND `method` == 'Face to Face Meeting' AND `from` != `to`"; + "WHERE `from` = :user AND `method` = 'Face to Face Meeting' AND `from` != `to`"; $query_params['user'] = $this->id; $row = $this->db->query($query, $query_params)->fetch(); if ($row['total'] === null) $row['total'] = 0;