dying when no session found to prevent the page from hanging
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 17 Jan 2006 15:09:43 +0000 (15:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 17 Jan 2006 15:09:43 +0000 (15:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2734 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/admin/stat_cat_editor.js

index 5e76378..d1b878b 100644 (file)
@@ -23,6 +23,7 @@ var opacVisible               = false;
 function scEditorInit() {
        var cgi = new CGI();
        session = cgi.param('ses');
+       if(!session) throw "User session is not defined";
        var show = cgi.param('show');
        user = fetchUser(session);
        if(show == ACTOR) scShow(ACTOR);