From 1a3aab0ef898260de59b9a541bc6e412e6e3f26a Mon Sep 17 00:00:00 2001 From: Joshua P Panter Date: Thu, 14 Feb 2019 20:04:23 -0500 Subject: [PATCH] fix sql syntax error #5 --- authMgrPlus/plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authMgrPlus/plugin.php b/authMgrPlus/plugin.php index 8bea763..b9a2bb6 100644 --- a/authMgrPlus/plugin.php +++ b/authMgrPlus/plugin.php @@ -3,7 +3,7 @@ Plugin Name: Auth Manager Plus Plugin URI: https://github.com/joshp23/YOURLS-AuthMgrPlus Description: Role Based Access Controlls with seperated user data for authenticated users -Version: 1.0.0 +Version: 1.0.1 Author: Josh Panter, nicwaller, Ian Barber Author URI: https://unfettered.net */ @@ -449,7 +449,7 @@ function authMgrPlus_activated() { } if(!$activated) { if ($version) { - $sql = "ALTER TABLE `$table` ADD `user` VARCHAR(255) NULL)"; + $sql = "ALTER TABLE `$table` ADD `user` VARCHAR(255) NULL"; $insert = $ydb->fetchAffected($sql); } else { $ydb->query("ALTER TABLE `$table` ADD `user` VARCHAR(255) NULL");