]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed syntax error in array
authorVincent Petry <pvince81@owncloud.com>
Thu, 3 Oct 2013 09:30:55 +0000 (11:30 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 3 Oct 2013 09:31:21 +0000 (11:31 +0200)
core/ajax/share.php

index 9b282b2b94ae15a6a8900b8b875f261b6ddba468..f55a79a9034f9299c67b91730fa354a2382031bd 100644 (file)
@@ -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
-                       array_diff($recipientList, [\OCP\User::getUser()]);
+                       array_diff($recipientList, array(\OCP\User::getUser()));
 
                        // send mail to all recipients with an email address
                        foreach ($recipientList as $recipient) {