IN YOUR FACE BRION!!!!
authorDomas Mituzas <midom@users.mediawiki.org>
Fri, 20 Apr 2007 15:33:51 +0000 (15:33 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Fri, 20 Apr 2007 15:33:51 +0000 (15:33 +0000)
check if the value has been actually set before checking if it is null.

includes/Revision.php

index 86b9634..84debfa 100644 (file)
@@ -281,8 +281,8 @@ class Revision {
                        $this->mMinorEdit = intval( $row->rev_minor_edit );
                        $this->mTimestamp =         $row->rev_timestamp;
                        $this->mDeleted   = intval( $row->rev_deleted );
-
-                       if( is_null( $row->rev_len ) )
+                       
+                       if( !isset( $row->rev_len ) || is_null( $row->rev_len ) )
                                $this->mSize = null;
                        else
                                $this->mSize = intval( $row->rev_len );