Index: trunk/phase3/includes/DatabasePostgres.php |
— | — | @@ -561,7 +561,7 @@ |
562 | 562 | } |
563 | 563 | |
564 | 564 | function affectedRows() { |
565 | | - if( !isset( $this->mLastResult ) ) |
| 565 | + if( !isset( $this->mLastResult ) or ! $this->mLastResult ) |
566 | 566 | return 0; |
567 | 567 | |
568 | 568 | return pg_affected_rows( $this->mLastResult ); |