Petit probleme de decompte : si n personnes en tout viennent (donc moi compris),...
[platal.git] / include / globals.inc.php.in
index 8673f7e..5e32b42 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -102,7 +102,9 @@ class PlatalGlobals
 
         if (is_null($aid)) {
             $gp = Get::v('n');
-            $gp = substr($gp, 0, strpos($gp, '/'));
+            if ($p = strpos($gp, '/')) {
+                $gp = substr($gp, 0, $p);
+            }
 
             if ($gp) {
                 $res = XDB::query('SELECT  a.*, d.nom AS domnom