Fix bogus var reference
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 22 Jun 2009 03:06:04 +0000 (03:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 22 Jun 2009 03:06:04 +0000 (03:06 +0000)
includes/LogEventsList.php

index c1dbe43..174be96 100644 (file)
@@ -112,9 +112,9 @@ class LogEventsList {
                        // Then it would have to be copied. Not certain what is more expensive.
                        $query = $this->getDefaultQuery();
                        $queryKey = "hide_{$type}_log";
-                       $query[$queryKey] = $hideVal;
 
                        $hideVal = 1 - intval($val);
+                       $query[$queryKey] = $hideVal;
 
                        $link = $this->skin->link(
                                $wgTitle,