Followup r85756
authorSam Reed <reedy@users.mediawiki.org>
Thu, 13 Oct 2011 16:40:22 +0000 (16:40 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 13 Oct 2011 16:40:22 +0000 (16:40 +0000)
Update code to use boolean, as it's not going to be null

includes/api/ApiFeedWatchlist.php

index 44ddd10..2346b32 100644 (file)
@@ -100,7 +100,7 @@ class ApiFeedWatchlist extends ApiBase {
                        }
 
                        // Check for 'allrev' parameter, and if found, show all revisions to each page on wl.
-                       if ( !is_null( $params['allrev'] ) ) {
+                       if ( $params['allrev'] ) {
                                $fauxReqArr['wlallrev'] = '';
                        }