From b4421a7b5768bb056b7a9829d4ff7e6c796d2442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asier=20Marqu=C3=A9s?= Date: Thu, 16 Apr 2015 09:53:44 +0200 Subject: [PATCH] Fixing a little bug in php<5.5 The bin/mage script returns "Can't use function return value in write context" in php<5.5 --- bin/mage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mage b/bin/mage index c051736..aff9e5e 100755 --- a/bin/mage +++ b/bin/mage @@ -8,8 +8,8 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -if (empty(ini_get('date.timezone'))) { +$timezone = ini_get('date.timezone'); +if (empty($timezone)) { date_default_timezone_set('UTC'); }