X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Freminder%2Fprofile_update.inc.php;h=1e7535e108101d18defdd793a392c08be66b04bb;hb=253254990e1b9c96bf1d06d8bfa9f0e279402381;hp=460997722c27c7d02ab2f867a52473b29b511cf8;hpb=19fdac5db9e89aee46ef0acc4cbe0626abff7148;p=platal.git 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); }