Merge pull request #5121 from owncloud/shareapi-syntaxerror
Fixed array syntax to work with PHP 5.3
This commit is contained in:
commit
b8f2adc7c1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue