librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1889] Fix for bug #26651


From: Clint Adams
Subject: [Librefm-commits] [1889] Fix for bug #26651
Date: Wed, 03 Jun 2009 14:49:45 +0000

Revision: 1889
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1889
Author:   clint
Date:     2009-06-03 14:49:45 +0000 (Wed, 03 Jun 2009)
Log Message:
-----------
Fix for bug #26651

Ticket Links:
:-----------
    http://savannah.gnu.org/bugs/?26651

Modified Paths:
--------------
    trunk/nixtape/user-profile.php

Modified: trunk/nixtape/user-profile.php
===================================================================
--- trunk/nixtape/user-profile.php      2009-06-03 14:49:42 UTC (rev 1888)
+++ trunk/nixtape/user-profile.php      2009-06-03 14:49:45 UTC (rev 1889)
@@ -32,7 +32,11 @@
        die();
 }
 
-$user = new User($_GET['user']);
+try {
+       $user = new User($_GET['user']);
+} catch (exception $e) {
+       $error = 'User not found';
+}
 
 if(isset($user->name)) {
 
@@ -77,7 +81,7 @@
 
        $smarty->display('user-profile.tpl');
 } else {
-       $smarty->assign('error', 'User not found');
+       $smarty->assign('error', $error);
        $smarty->assign('details', 'Shall I call in a missing persons report?');
        $smarty->display('error.tpl');
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]