From: Aaron Schulz Date: Wed, 13 May 2009 22:22:09 +0000 (+0000) Subject: Give failure message rather than assuming field 0 for trying to set field 8 (just... X-Git-Tag: 1.31.0-rc.0~41810 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=f0c3cd858453258c2344a70f94b6ce555627da0b;p=lhc%2Fweb%2Fwiklou.git Give failure message rather than assuming field 0 for trying to set field 8 (just suppressing a rev but not hiding anything) --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 6bd0b1d3d3..35f32d3bb8 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -851,7 +851,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $dbw = wfGetDB( DB_MASTER ); // Don't allow simply locking the interface for no reason if( $bitfield == Revision::DELETED_RESTRICTED ) { - $bitfield = 0; + return false; } $deleter = new RevisionDeleter( $dbw ); // By this point, only one of the below should be set