From: Roan Kattouw Date: Sun, 1 Mar 2009 11:02:49 +0000 (+0000) Subject: Fix up r47901: don't return the string "true" or "false", be consistent with the... X-Git-Tag: 1.31.0-rc.0~42648 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=c7ca98503a30699b223724124f62627c69ae2a84;p=lhc%2Fweb%2Fwiklou.git Fix up r47901: don't return the string "true" or "false", be consistent with the rest of the API --- 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;