Merge remote branch 'origin/platal-1.0.0' into platal-1.0.1
[platal.git] / bin / cron / homonyms.php
index cda0f68..6de61bc 100755 (executable)
@@ -25,7 +25,6 @@
  * destruction, a second on the date.
  */
 require 'connect.db.inc.php';
-require_once 'validations/homonymes.inc.php';
 
 $resRobot = XDB::iterator("SELECT  uid, alias, expire
                              FROM  aliases
@@ -34,7 +33,7 @@ $resRobot = XDB::iterator("SELECT  uid, alias, expire
 while ($old = $resRobot->next()) {
     $res = XDB::query('SELECT  a.hruid
                          FROM  homonyms AS h
-                   INNER JOIN  accounts AS a (h.uid = a.uid)
+                   INNER JOIN  accounts AS a ON (h.uid = a.uid)
                         WHERE  homonyme_id = {?}',
                       $old['id']);
     $hruids = $res->fetchColumn();