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

[livejournal] r23503: LJSUP-14663 ([internal] fix production w...

Committer: ailyin
LJSUP-14663 ([internal] fix production warnings after release 100)
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2012-12-24 08:32:23 UTC (rev 23502)
+++ trunk/cgi-bin/LJ/S2.pm	2012-12-24 14:41:18 UTC (rev 23503)
@@ -176,7 +176,6 @@
     }
 
     return if $opts->{'badfriendgroup'};
-    return if $opts->{'errors'};
     return if $opts->{'handler_return'};
     return if $opts->{'readonlyremote'};
     return if $opts->{'readonlyjournal'};
@@ -184,6 +183,11 @@
     return if $opts->{'suspendeduser'};
     return if $opts->{'suspendedentry'};
 
+    if ( my $errors = $opts->{'errors'} ) {
+        return unless ref $errors;
+        return if ref $errors eq 'ARRAY' && @$errors;
+    }
+
     # the friends mode=live returns raw HTML in $page, in which case there's
     # nothing to "run" with s2_run.  so $page isn't runnable, return it now.
     # but we have to make sure it's defined at all first, otherwise things

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