Always better with an explicit message.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 21 Jan 2008 20:25:20 +0000 (21:25 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 21 Jan 2008 20:25:20 +0000 (21:25 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/xnetevents/xnetevents.inc.php

index aa794fb..b401bf0 100644 (file)
@@ -381,10 +381,12 @@ class XNetEvent
                                 WHERE  email = {?}",
                               $login);
         }
+        $email = $login . '@' . $domain;
         if ($res->numRows() == 0) {
+            global $page;
+            $page->trig("Aucun utilisateur ne correspond à $email.");
             return false;
         }
-        $email = $login . '@' . $domain;
         $uid   = $res->fetchOneCell();
         $participants = false;
         $topay        = 0;