From 1f464a7113f15ba55c3c80863e315855707f2177 Mon Sep 17 00:00:00 2001 From: Florin Peter Date: Thu, 9 May 2013 23:21:39 +0200 Subject: [PATCH] fix for accessing non object --- lib/public/share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/share.php b/lib/public/share.php index cb151b9f4bf..17fdd338610 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -1249,7 +1249,7 @@ class Share { , $params ); // If hook execution didn't encounter errors - if ( ! $run->run ) { + if ( $run !== false && !$run->run ) { $message = 'Sharing '.$itemSource.' failed, because pre share hooks failed'; \OC_Log::write('OCP\Share', $message, \OC_Log::ERROR); return false; -- 2.39.5