From c7ca98503a30699b223724124f62627c69ae2a84 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 1 Mar 2009 11:02:49 +0000 Subject: [PATCH] Fix up r47901: don't return the string "true" or "false", be consistent with the rest of the API --- includes/api/ApiQueryLogEvents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 8b763d6969..893e228858 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -162,8 +162,8 @@ class ApiQueryLogEvents extends ApiQueryBase { $vals[$type] = $vals2; } } - if (isset ($params[1])) { - $vals[$type]['suppressedredirect'] = (bool) $params[1]; + if (isset ($params[1]) && $params[1]) { + $vals[$type]['suppressedredirect'] = ''; } $params = null; break; -- 2.20.1