From: Bjoern Schiessle Date: Fri, 4 Oct 2013 10:23:40 +0000 (+0200) Subject: fix array_diff call X-Git-Tag: v6.0.0alpha2~101^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=304803d102fed4f9a7acf404f76fcf49d82f5a43;p=nextcloud-server.git fix array_diff call --- diff --git a/core/ajax/share.php b/core/ajax/share.php index 9b282b2b94a..ed9cbfd109a 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 - 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) {