]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix fatal error when trying to open a non existing public link
authorRobin Appelman <icewind@owncloud.com>
Tue, 12 Nov 2013 14:38:00 +0000 (15:38 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 12 Nov 2013 14:38:00 +0000 (15:38 +0100)
lib/public/share.php

index 01bf61a60a5a33ffe4c004c8e608f15b145fc96a..caa274b8579492343d23a98d99328f00928079c5 100644 (file)
@@ -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;