fix for accessing non object

remotes/origin/stable6
Florin Peter 13 years ago
parent de855ac31b
commit 1f464a7113
  1. 2
      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;

Loading…
Cancel
Save