From: Stéphane Jacob Date: Fri, 7 Aug 2009 17:31:18 +0000 (+0200) Subject: Fixes some errors in the profile_update reminder. X-Git-Tag: xorg/1.0.0~332^2~313^2~2 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d392bbc4ae30229ca1881b25020f171e22e8cf4b;p=platal.git Fixes some errors in the profile_update reminder. --- diff --git a/include/reminder/profile_update.inc.php b/include/reminder/profile_update.inc.php index 4609977..1e7535e 100644 --- a/include/reminder/profile_update.inc.php +++ b/include/reminder/profile_update.inc.php @@ -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); }