From: Domas Mituzas Date: Fri, 20 Apr 2007 15:33:51 +0000 (+0000) Subject: IN YOUR FACE BRION!!!! X-Git-Tag: 1.31.0-rc.0~53326 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=1c7e5346fc55796c1467e96aed5a326e96221b94;p=lhc%2Fweb%2Fwiklou.git IN YOUR FACE BRION!!!! check if the value has been actually set before checking if it is null. --- 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 );