From: daniel Date: Mon, 22 Apr 2013 07:52:36 +0000 (+0200) Subject: Fix debug log line for $userLimit. X-Git-Tag: 1.31.0-rc.0~19921 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=3487ae0630b9b3679117121af617f1de7405336b;p=lhc%2Fweb%2Fwiklou.git Fix debug log line for $userLimit. $userLimit was used inline in the message, causing an "array to string conversion" notice and a mangled log entry. Change-Id: I8c5199f1bf01b56e955d8d15c48061b5301b1745 --- diff --git a/includes/User.php b/includes/User.php index 03e894e589..e911cb011f 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1534,7 +1534,8 @@ class User { } // Set the user limit key if ( $userLimit !== false ) { - wfDebug( __METHOD__ . ": effective user limit: $userLimit\n" ); + list( $max, $period ) = $userLimit; + wfDebug( __METHOD__ . ": effective user limit: $max in {$period}s\n" ); $keys[wfMemcKey( 'limiter', $action, 'user', $id )] = $userLimit; }