summaryrefslogtreecommitdiffstats
path: root/includes/admin/register_db_tables.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/admin/register_db_tables.php')
-rw-r--r--includes/admin/register_db_tables.php17
1 files changed, 7 insertions, 10 deletions
diff --git a/includes/admin/register_db_tables.php b/includes/admin/register_db_tables.php
index ce0f25c..5f83e25 100644
--- a/includes/admin/register_db_tables.php
+++ b/includes/admin/register_db_tables.php
@@ -4,16 +4,14 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-if ( !function_exists( "giglog_register_db_tables") )
-{
+if ( ! function_exists( 'giglog_register_db_tables' ) ) {
/**
* Registers the tables used by the GiglogAdmin plugin
*/
- function giglog_register_db_tables() : void
- {
+ function giglog_register_db_tables() : void {
global $wpdb;
- $tables = [];
+ $tables = array();
$tables[] =
"CREATE TABLE IF NOT EXISTS `{$wpdb->prefix}giglogadmin_venues` (
`id` int(11) NOT NULL AUTO_INCREMENT,
@@ -45,11 +43,10 @@ if ( !function_exists( "giglog_register_db_tables") )
REFERENCES `{$wpdb->prefix}giglogadmin_venues` (`id`) ON DELETE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
-
- foreach($tables as $tabledef) {
- $result = $wpdb->query($tabledef);
- if ($result === false) {
- error_log("Registering table failed.");
+ foreach ( $tables as $tabledef ) {
+ $result = $wpdb->query( $tabledef );
+ if ( $result === false ) {
+ error_log( 'Registering table failed.' );
}
}
}