Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r21826: LJSUP-11976 (refactor methods working wi...

Committer: ailyin
LJSUP-11976 (refactor methods working with infohistory into classes of its own)
U   trunk/cgi-bin/LJ/User/InfoHistory.pm
Modified: trunk/cgi-bin/LJ/User/InfoHistory.pm
===================================================================
--- trunk/cgi-bin/LJ/User/InfoHistory.pm	2012-04-27 11:15:14 UTC (rev 21825)
+++ trunk/cgi-bin/LJ/User/InfoHistory.pm	2012-04-27 11:38:40 UTC (rev 21826)
@@ -45,7 +45,7 @@
 
     if ( ref $what eq 'ARRAY' ) {
         my %acceptable_what = map { $_ => 1 } @$what;
-        return [ grep { $acceptable_what{ $_->what } } @$records;
+        return [ grep { $acceptable_what{ $_->what } } @$records ];
     } else {
         return [ grep { $_->what eq $what } @$records ];
     }

Tags: ailyin, andy, livejournal, pm
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