]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Bad check on existing urlhash key
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 19 Feb 2015 18:36:59 +0000 (19:36 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 19 Feb 2015 18:36:59 +0000 (19:36 +0100)
classes/File.php

index bc1b4a6d09f4c5b5d4ed521f6d48edcacef105c9..44bbbc5993060888845b0813e079de8bcadbb21d 100644 (file)
@@ -619,7 +619,7 @@ class File extends Managed_DataObject
         $schemadef = $schema->getTableDef($table);
 
         // 2015-02-19 We have to upgrade our table definitions to have the urlhash field populated
-        if (isset($schemadef['fields']['urlhash']) && in_array('file_urlhash_key', $schemadef['unique keys'])) {
+        if (isset($schemadef['fields']['urlhash']) && isset($schemadef['unique keys']['file_urlhash_key'])) {
             // We already have the urlhash field, so no need to migrate it.
             return;
         }