From 2b1a4c92d43f4664077e586f0cdc3bdb243ac7ab Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Sun, 26 Dec 2010 04:38:41 +0000 Subject: [PATCH] (Bug 26425) Due to r71751, wfTimestamp stopped accepting '' to mean get current timestamp. This caused Block::__construct to put all sort of messages in the debug log about invalid timestamp. So change Block to use timestamp of 0 instead of '' if unspecified. --- includes/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Block.php b/includes/Block.php index 17ebeb218c..7c5f0ddd72 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -24,7 +24,7 @@ class Block { const EB_RANGE_ONLY = 4; function __construct( $address = '', $user = 0, $by = 0, $reason = '', - $timestamp = '' , $auto = 0, $expiry = '', $anonOnly = 0, $createAccount = 0, $enableAutoblock = 0, + $timestamp = 0, $auto = 0, $expiry = '', $anonOnly = 0, $createAccount = 0, $enableAutoblock = 0, $hideName = 0, $blockEmail = 0, $allowUsertalk = 0, $byName = false ) { $this->mId = 0; -- 2.20.1