]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix array_diff call
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Oct 2013 10:23:40 +0000 (12:23 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Oct 2013 10:23:40 +0000 (12:23 +0200)
core/ajax/share.php

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