From: Mikael Nordfeldth Date: Thu, 19 Feb 2015 18:36:59 +0000 (+0100) Subject: Bad check on existing urlhash key X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e299583eee9a354df2df8498fe5803ef4c444b1f;p=quix0rs-gnu-social.git Bad check on existing urlhash key --- diff --git a/classes/File.php b/classes/File.php index bc1b4a6d09..44bbbc5993 100644 --- a/classes/File.php +++ b/classes/File.php @@ -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; }