Moving to GitHub.
[platal.git] / include / reminder / profile_update.inc.php
index 52400e9..5ecba92 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -57,7 +57,7 @@ class ReminderProfileUpdate extends Reminder
         }
     }
 
-    public function Prepare(&$page)
+    public function Prepare($page)
     {
         parent::Prepare($page);
         $profile = $this->user->profile();
@@ -96,16 +96,17 @@ class ReminderProfileUpdate extends Reminder
         return new PlFlagSet($flags);
     }
 
-    public static function IsCandidate(User &$user, $candidate)
+    public static function IsCandidate(User $user, $candidate)
     {
         $profile = $user->profile();
         if (!$profile) {
             return false;
         }
         return !$profile->has_photo || $profile->is_old
-            || !is_null(self::ListMergeIssues($profile));
+            || !is_null(self::ListMergeIssues($profile))
+            || Geocoder::countNonGeocoded($profile->id()) > 0;
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>