fix for accessing non object

This commit is contained in:
Florin Peter 2013-05-09 23:21:39 +02:00
parent de855ac31b
commit 1f464a7113
1 changed files with 1 additions and 1 deletions

View 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;