Add check for RCWatchCategoryMembership before trying to access form option
authoraude <aude.wiki@gmail.com>
Tue, 20 Oct 2015 23:07:58 +0000 (01:07 +0200)
committeraude <aude.wiki@gmail.com>
Tue, 20 Oct 2015 23:07:58 +0000 (01:07 +0200)
Change-Id: Ie38e0fd703eb688267e5d19c145256dd6c8ada94

includes/specialpage/ChangesListSpecialPage.php

index c1c9a13..74842aa 100644 (file)
@@ -254,7 +254,9 @@ abstract class ChangesListSpecialPage extends SpecialPage {
                                $conds[] = 'rc_user_text != ' . $dbr->addQuotes( $user->getName() );
                        }
                }
-               if ( $opts['hidecategorization'] === true ) {
+               if ( $this->getConfig()->get( 'RCWatchCategoryMembership' )
+                       && $opts['hidecategorization'] === true
+               ) {
                        $conds[] = 'rc_type != ' . $dbr->addQuotes( RC_CATEGORIZE );
                }