From 3bbb65998fed43728f3e67822d81a289a8886e17 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 5 Oct 2015 12:03:36 +0200 Subject: [PATCH] Make sure all variables are defined --- lib/private/share/share.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/share/share.php b/lib/private/share/share.php index b22b4b6a2e..42fec03d3a 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -1989,6 +1989,8 @@ class Share extends Constants { $queriesToExecute = array(); $suggestedItemTarget = null; + $groupFileTarget = $fileTarget = $suggestedFileTarget = $filePath = ''; + $groupItemTarget = $itemTarget = $fileSource = $parent = 0; $result = self::checkReshare($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, $itemSourceName, $expirationDate); if(!empty($result)) {