[Fusionforge-commits] r6986 - trunk/gforge/www/account

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Feb 17 14:19:33 CET 2009


Author: lolando
Date: 2009-02-17 14:19:32 +0100 (Tue, 17 Feb 2009)
New Revision: 6986

Modified:
   trunk/gforge/www/account/unsubscribe.php
Log:
Fixed programming error (patch #6 from Julien Heyman)

Modified: trunk/gforge/www/account/unsubscribe.php
===================================================================
--- trunk/gforge/www/account/unsubscribe.php	2009-02-16 21:42:01 UTC (rev 6985)
+++ trunk/gforge/www/account/unsubscribe.php	2009-02-17 13:19:32 UTC (rev 6986)
@@ -51,10 +51,10 @@
 
 $row_user = db_fetch_array($res_user);
 $user =& user_get_object($row_user['user_id'], $res_user);
-if (!$u || !is_object($u)) {
+if (!$user || !is_object($user)) {
     exit_error('Error','Could Not Get User');
-} elseif ($u->isError()) {
-    exit_error('Error',$u->getErrorMessage());
+} elseif ($user->isError()) {
+    exit_error('Error',$user->getErrorMessage());
 }
 
 $all=getStringFromRequest('all');




More information about the Fusionforge-commits mailing list