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

[livejournal] r20856: LJSUP-10815 (Fotki.ru: store data on our...

Committer: ailyin
LJSUP-10815 (Fotki.ru: store data on our own servers)
U   trunk/cgi-bin/LJ/Request/Apache.pm
U   trunk/cgi-bin/LJ/Request/Apache2.pm
Modified: trunk/cgi-bin/LJ/Request/Apache.pm
===================================================================
--- trunk/cgi-bin/LJ/Request/Apache.pm	2011-12-23 13:07:06 UTC (rev 20855)
+++ trunk/cgi-bin/LJ/Request/Apache.pm	2011-12-23 13:56:25 UTC (rev 20856)
@@ -89,7 +89,9 @@
 
 sub LJ::Request::prev {
     my $class = shift;
-    return LJ::Request->_new($class->r()->prev(@_));
+    my $prev_handle = $class->r()->prev(@_);
+    return unless $prev_handle;
+    return LJ::Request->_new($prev_handle);
 }
 
 sub LJ::Request::is_inited {

Modified: trunk/cgi-bin/LJ/Request/Apache2.pm
===================================================================
--- trunk/cgi-bin/LJ/Request/Apache2.pm	2011-12-23 13:07:06 UTC (rev 20855)
+++ trunk/cgi-bin/LJ/Request/Apache2.pm	2011-12-23 13:56:25 UTC (rev 20856)
@@ -98,7 +98,9 @@
 
 sub LJ::Request::prev {
     my $class = shift;
-    return LJ::Request->_new($class->r()->prev(@_));
+    my $prev_handle = $class->r()->prev(@_);
+    return unless $prev_handle;
+    return LJ::Request->_new($prev_handle);
 }
 
 sub LJ::Request::is_inited {

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