Browse Source

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
1.0
Asier Marqués 10 years ago
parent
commit
b4421a7b57
  1. 4
      bin/mage

4
bin/mage

@ -8,8 +8,8 @@
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
$timezone = ini_get('date.timezone');
if (empty(ini_get('date.timezone'))) { if (empty($timezone)) {
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');
} }

Loading…
Cancel
Save