From de7f9a9bd8187e7ce17a80ea88b18429c02ce688 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 10 Mar 2020 17:29:37 +0100 Subject: [PATCH] Avoid use of old array syntax (#331) --- db/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/upgrade.php b/db/upgrade.php index 066437e..57e1562 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -152,7 +152,7 @@ function xmldb_customcert_upgrade($oldversion) { if ($dbman->index_exists($table, $index)) { $dbman->drop_index($table, $index); } - $key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, array('templateid'), 'customcert_templates', array('id')); + $key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, ['templateid'], 'customcert_templates', ['id']); $dbman->add_key($table, $key); $table = new xmldb_table('customcert_pages'); @@ -160,7 +160,7 @@ function xmldb_customcert_upgrade($oldversion) { if ($dbman->index_exists($table, $index)) { $dbman->drop_index($table, $index); } - $key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, array('templateid'), 'customcert_templates', array('id')); + $key = new xmldb_key('templateid', XMLDB_KEY_FOREIGN, ['templateid'], 'customcert_templates', ['id']); $dbman->add_key($table, $key); upgrade_mod_savepoint(true, 2019052003, 'customcert');