diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-04 14:28:11 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-04 14:28:11 +0200 |
commit | e257c3f27cd40bebad75b887a57d7b915210433c (patch) | |
tree | ada3fdd03b27664060753bcee2c514c6621374ac /core/ajax/share.php | |
parent | 31d5565a18d151ef1518789a5e80520efa4719cd (diff) | |
download | nextcloud-server-e257c3f27cd40bebad75b887a57d7b915210433c.tar.gz nextcloud-server-e257c3f27cd40bebad75b887a57d7b915210433c.zip |
Fixed array syntax to work with PHP 5.3
It seems that array brackets are only supported starting with PHP 5.4.
Fixed the array brackets to be compatible and not cause a syntax error
in PHP 5.3.
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r-- | core/ajax/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index ed9cbfd109a..1166ea3198a 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -104,7 +104,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo } // don't send a mail to the user who shared the file - $recipientList = array_diff($recipientList, [\OCP\User::getUser()]); + $recipientList = array_diff($recipientList, array(\OCP\User::getUser())); // send mail to all recipients with an email address foreach ($recipientList as $recipient) { |