Index: trunk/phase3/includes/Article.php |
— | — | @@ -2545,13 +2545,17 @@ |
2546 | 2546 | |
2547 | 2547 | $hasHistory = ( $res->numRows() > 1 ); |
2548 | 2548 | $row = $dbw->fetchObject( $res ); |
2549 | | - $onlyAuthor = $row->rev_user_text; |
2550 | | - // Try to find a second contributor |
2551 | | - foreach ( $res as $row ) { |
2552 | | - if ( $row->rev_user_text != $onlyAuthor ) { |
2553 | | - $onlyAuthor = false; |
2554 | | - break; |
| 2549 | + if ( $row ) { // $row is false if the only contributor is hidden |
| 2550 | + $onlyAuthor = $row->rev_user_text; |
| 2551 | + // Try to find a second contributor |
| 2552 | + foreach ( $res as $row ) { |
| 2553 | + if ( $row->rev_user_text != $onlyAuthor ) { // Bug 22999 |
| 2554 | + $onlyAuthor = false; |
| 2555 | + break; |
| 2556 | + } |
2555 | 2557 | } |
| 2558 | + } else { |
| 2559 | + $onlyAuthor = false; |
2556 | 2560 | } |
2557 | 2561 | $dbw->freeResult( $res ); |
2558 | 2562 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -66,6 +66,7 @@ |
67 | 67 | links with non-NFC character references work correctly. |
68 | 68 | * (bug 22991) wgUserGroups JavaScript variable now reports * group for |
69 | 69 | anonymous users instead of null. |
| 70 | +* (bug 22627) Remove PHP notice when deleting a page only hidden users edited. |
70 | 71 | |
71 | 72 | == API changes in 1.17 == |
72 | 73 | * (bug 22738) Allow filtering by action type on query=logevent |