]> source.dussan.org Git - nextcloud-server.git/commitdiff
in case no share is found for the given token we can return right away
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 21 Jan 2014 09:55:10 +0000 (10:55 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 21 Jan 2014 09:55:10 +0000 (10:55 +0100)
lib/public/share.php

index 4573fe8d8d35312fd4260eea275bd4368e68b860..ddc9e1e066f1e2132d802013e3cf140b27ceda5b 100644 (file)
@@ -358,6 +358,9 @@ class Share {
                        \OC_Log::write('OCP\Share', \OC_DB::getErrorMessage($result) . ', token=' . $token, \OC_Log::ERROR);
                }
                $row = $result->fetchRow();
+               if ($row === false) {
+                       return false;
+               }
                if (is_array($row) and self::expireItem($row)) {
                        return false;
                }