vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r12818: LJSUP-14040: Get rid of "Can't call meth...

Committer: vad
LJSUP-14040: Get rid of "Can't call method "session" on an undefined value at"
U   trunk/htdocs/gadgets/logout.bml
Modified: trunk/htdocs/gadgets/logout.bml
===================================================================
--- trunk/htdocs/gadgets/logout.bml	2012-10-24 08:57:43 UTC (rev 12817)
+++ trunk/htdocs/gadgets/logout.bml	2012-10-24 09:25:40 UTC (rev 12818)
@@ -9,6 +9,8 @@
     BML::finish();
 
     my $u = LJ::get_remote();
+    die "logged out" unless $u;
+
     my $user   = $POST{'user'} || $GET{'user'};
     my $sessid = $POST{'sessid'} || $GET{'sessid'};
 

Tags: bml, ljcom, vad, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments