From 3487ae0630b9b3679117121af617f1de7405336b Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 22 Apr 2013 09:52:36 +0200 Subject: [PATCH] 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 --- includes/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.20.1