]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix for accessing non object
authorFlorin Peter <github@florin-peter.de>
Thu, 9 May 2013 21:21:39 +0000 (23:21 +0200)
committerFlorin Peter <github@florin-peter.de>
Thu, 9 May 2013 21:21:39 +0000 (23:21 +0200)
lib/public/share.php

index cb151b9f4bf497b4964d3f705f27853f901c4680..17fdd338610b94bfef35b915a472db0beaf9d74b 100644 (file)
@@ -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;