From cf72bf1dcc9c3473fdc58e7dec8e4ec3648bd2fa Mon Sep 17 00:00:00 2001 From: Aaron Howell Date: Wed, 5 Jul 2017 18:26:31 +1000 Subject: [PATCH] Fixed: php 5.4 array shortcut syntax errors on 5.3 --- broadcast-message.php | 2 +- setup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/broadcast-message.php b/broadcast-message.php index 9101276b..888eb3ba 100644 --- a/broadcast-message.php +++ b/broadcast-message.php @@ -59,7 +59,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") $table_mailbox = table_by_key('mailbox'); $table_alias = table_by_key('alias'); - $recipients = []; + $recipients = array(); $q = "SELECT username from $table_mailbox WHERE active='" . db_get_boolean(true) . "' AND ".db_in_clause("domain", $wanted_domains); if (intval(safepost('mailboxes_only')) == 0) { diff --git a/setup.php b/setup.php index cfb7a5cd..13755b05 100644 --- a/setup.php +++ b/setup.php @@ -58,7 +58,7 @@ $file_local_config = file_exists (realpath ("./config.local.php")); $error = 0; -$errormsg = []; +$errormsg = array(); // // Check for PHP version