$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());
}
$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);
}