Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r21987: LJSUP-12126: Function LJ::need_var() to ...

Committer: anazarov
LJSUP-12126: Function LJ::need_var() to insert variables into Site.page object
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-05-18 07:39:41 UTC (rev 21986)
+++ trunk/cgi-bin/weblib.pl	2012-05-18 07:42:31 UTC (rev 21987)
@@ -2454,7 +2454,7 @@
     my %vars;
 
     # Our arguments are hash ref
-    if (@_ == 1 and ref $_[0] eq 'HASH') {
+    if (@_ == 1 and ref $_[0] and ref $_[0] eq 'HASH') {
         %vars = %{$_[0]};
     # List of key-value pairs otherwise
     } else {

Tags: anazarov, livejournal, nfokz, pl
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