Committer: amyshkin
LJSUP-8857: Updating commenting formU trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm =================================================================== --- trunk/cgi-bin/LJ/Talk.pm 2011-08-29 02:28:57 UTC (rev 19877) +++ trunk/cgi-bin/LJ/Talk.pm 2011-08-29 05:50:38 UTC (rev 19878) @@ -1970,9 +1970,15 @@ 'willscreenfriend' => $ml_willscreenfriend, ); - $usertype_default =~ /^(.+)_cookie$/; - my $usertype = $1 || $usertype_default; + my $usertype; + if ( $usertype_default =~ /^(.+)_cookie$/ ) { + $usertype = $1; + } + else { + $usertype = $usertype_default; + } + # COMMON TEMPLATE PARAMS ARE DEFINED HERE my %params = ( # string values the template may wish