From: Aaron Schulz Date: Wed, 19 Oct 2011 21:21:20 +0000 (+0000) Subject: Code cleanups & fixed strange comma X-Git-Tag: 1.31.0-rc.0~26997 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=59e2f3e0916851b7390493484a47e1a20d9a6d0b;p=lhc%2Fweb%2Fwiklou.git Code cleanups & fixed strange comma --- diff --git a/includes/Revision.php b/includes/Revision.php index cd5e13fcfa..6ea6544ddb 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -297,7 +297,7 @@ class Revision { 'rev_text_id', 'rev_timestamp', 'rev_comment', - 'rev_user_text,'. + 'rev_user_text', 'rev_user', 'rev_minor_edit', 'rev_deleted', @@ -397,8 +397,9 @@ class Revision { $this->mTitle = null; # Load on demand if needed $this->mCurrent = false; # If we still have no len_size, see it we have the text to figure it out - if ( !$this->mSize ) + if ( !$this->mSize ) { $this->mSize = is_null( $this->mText ) ? null : strlen( $this->mText ); + } } else { throw new MWException( 'Revision constructor passed invalid row format.' ); }