Шурик (fortl) wrote in changelog,
Шурик
fortl
changelog

[livejournal] r18337: LJSUP-7979 error when open page http://w...

Committer: aurbanowich
LJSUP-7979 error when open page http://www.lj-9.bulyon.local/manage/profile/?authas=<community name>

U   trunk/htdocs/manage/profile/index.bml
Modified: trunk/htdocs/manage/profile/index.bml
===================================================================
--- trunk/htdocs/manage/profile/index.bml	2011-02-17 07:42:59 UTC (rev 18336)
+++ trunk/htdocs/manage/profile/index.bml	2011-02-17 08:21:19 UTC (rev 18337)
@@ -561,7 +561,8 @@
             my $statuses = LJ::SMS::API::RU::Phone->get_cur_phone_statuses($phone);
             $status = 'already_use' if grep { $_->[0] eq 'verified' && $_->[1] != $u->{'userid'} } @$statuses;
 			$ret .= "smsNotifyInitialState = \"".$status."\";";
-			$ret .= "var supportedDEF = [" . join(',', @{$LJ::SMSRU{defs_by_country}->{$country}}) . "];";
+			my $defs = $LJ::SMSRU{defs_by_country}->{$country} || [];
+			$ret .= "var supportedDEF = [" . join(',', @$defs) . "];";
 			$ret .= "var smsCountry = '$country';";
 			$ret .= "var smsNotifyDict = {";
 			$ret .= "";

Tags: bml, fortl, livejournal
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