]> source.dussan.org Git - nextcloud-server.git/commitdiff
$this->numericId should be determined based on table storages not filecache
authorThomas Mueller <thomas.mueller@tmit.eu>
Tue, 12 Feb 2013 16:26:58 +0000 (17:26 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Tue, 12 Feb 2013 16:26:58 +0000 (17:26 +0100)
lib/files/cache/cache.php

index dcb6e8fd39ac7fd8441027356a150772d294bb6c..38b35c69def36a764bdd9d911742fad1b00b4443 100644 (file)
@@ -56,7 +56,7 @@ class Cache {
                } else {
                        $query = \OC_DB::prepare('INSERT INTO `*PREFIX*storages`(`id`) VALUES(?)');
                        $query->execute(array($this->storageId));
-                       $this->numericId = \OC_DB::insertid('*PREFIX*filecache');
+                       $this->numericId = \OC_DB::insertid('*PREFIX*storages');
                }
        }