From 1c7e5346fc55796c1467e96aed5a326e96221b94 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 20 Apr 2007 15:33:51 +0000 Subject: [PATCH] IN YOUR FACE BRION!!!! check if the value has been actually set before checking if it is null. --- includes/Revision.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Revision.php b/includes/Revision.php index 86b96347be..84debfaeda 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -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 ); -- 2.20.1