r22543 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22542‎ | r22543 | r22544 >
Date:20:28, 29 May 2007
Author:greg
Status:old
Tags:
Comment:
The variable mLastResult may be null /or/ false: check for both in affected rows method.
Modified paths:
  • /trunk/phase3/includes/DatabasePostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DatabasePostgres.php
@@ -561,7 +561,7 @@
562562 }
563563
564564 function affectedRows() {
565 - if( !isset( $this->mLastResult ) )
 565+ if( !isset( $this->mLastResult ) or ! $this->mLastResult )
566566 return 0;
567567
568568 return pg_affected_rows( $this->mLastResult );

Follow-up revisions

RevisionCommit summaryAuthorDate
r22549Merged revisions 22518-22547 via svnmerge from...david01:48, 30 May 2007