|
From: | David Johnson |
Subject: | [Librefm-bugs] [bug #26651] error when trying to access profile that doesnot exist |
Date: | Mon, 25 May 2009 10:02:59 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.7) Gecko/2009030810 Iceweasel/3.0.6, Ant.com Toolbar 1.2 (Debian-3.0.9-1) |
Follow-up Comment #1, bug #26651 (project librefm): I reckon the attached patch should fix this. Not tested I'm afraid as I haven't been able to get my own instance of libre.fm working yet. While it's probably better to handle non-existent users with exceptions, the code doesn't appear to handle this anywhere yet. This solution should work as pages which instantiate User() check for the existence of $user->name to confirm that the user exists. (file #18198) _______________________________________________________ Additional Item Attachment: File name: fix-invalid-user-exception.patch Size:0 KB _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?26651> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |