diff options
-rw-r--r-- | lib/public/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 01bf61a60a5..caa274b8579 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -354,7 +354,7 @@ class Share { \OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR); } $row = $result->fetchRow(); - if (self::expireItem($row)) { + if (is_array($row) and self::expireItem($row)) { return false; } return $row; |