From: Brion Vibber Date: Fri, 9 Mar 2007 15:19:59 +0000 (+0000) Subject: is_null() throws a NOTICE for undefined things; use !isset() X-Git-Tag: 1.31.0-rc.0~53835 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=2b9c27557a3cc1069e9722c908bd3d493f17935a;p=lhc%2Fweb%2Fwiklou.git is_null() throws a NOTICE for undefined things; use !isset() --- diff --git a/includes/Revision.php b/includes/Revision.php index 9432f0c339..93b92a9931 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -264,7 +264,7 @@ class Revision { $this->mTimestamp = $row->rev_timestamp; $this->mDeleted = intval( $row->rev_deleted ); - if (is_null($row->rev_len)) + if( !isset( $row->rev_len ) ) $this->mSize = null; else $this->mSize = intval( $row->rev_len );