dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c6db4
)
IN YOUR FACE BRION!!!!
author
Domas Mituzas
<midom@users.mediawiki.org>
Fri, 20 Apr 2007 15:33:51 +0000
(15:33 +0000)
committer
Domas 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
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
86b9634
..
84debfa
100644
(file)
--- 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 );