Committer: anazarov
LJSUP-12126: Function LJ::need_var() to insert variables into Site.page objectU 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 {