Fixes some errors in the profile_update reminder.
authorStéphane Jacob <sj@m4x.org>
Fri, 7 Aug 2009 17:31:18 +0000 (19:31 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 7 Aug 2009 17:31:18 +0000 (19:31 +0200)
include/reminder/profile_update.inc.php

index 4609977..1e7535e 100644 (file)
@@ -63,7 +63,7 @@ class ReminderProfileUpdate extends Reminder
 
         $res = XDB::query('SELECT  COUNT(*)
                              FROM  profile_addresses
-                            WHERE  pid = {?} AND accuracy = 0'
+                            WHERE  pid = {?} AND accuracy = 0',
                           $this->user->id());
         $page->assign('geocoding_incitation', $res->fetchOneCell());
     }
@@ -93,8 +93,8 @@ class ReminderProfileUpdate extends Reminder
 
         $res = XDB::query('SELECT  COUNT(*)
                              FROM  profile_addresses
-                            WHERE  pid = {?} AND accuracy = 0'
-                          $this->user->id());
+                            WHERE  pid = {?} AND accuracy = 0',
+                          $user->id());
 
         return ($res->fetchOneCell() || !$has_photo || $is_profile_old);
     }