summaryrefslogtreecommitdiff
path: root/manager/application
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2015-07-31 08:53:09 +0200
committerINOPIAE <inopiae@cacert.org>2015-07-31 08:53:09 +0200
commitbbfbb594549557f794015112dd3845d6b4f704ba (patch)
tree7093918bf800a5e172e47271da648a74b32a999a /manager/application
parent7239b831f830eb8f3f40603e3beb7d78d952496c (diff)
downloadcacert-mgr-bbfbb594549557f794015112dd3845d6b4f704ba.tar.gz
cacert-mgr-bbfbb594549557f794015112dd3845d6b4f704ba.tar.xz
cacert-mgr-bbfbb594549557f794015112dd3845d6b4f704ba.zip
bug 1391: fixed syntax in sql statement
Diffstat (limited to 'manager/application')
-rw-r--r--manager/application/models/User.php2
1 files changed, 1 insertions, 1 deletions
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;