fix sql syntax error #5

This commit is contained in:
Joshua P Panter 2019-02-14 20:04:23 -05:00
parent e800a1222e
commit 1a3aab0ef8
No known key found for this signature in database
GPG Key ID: 59903022E9AC64FC

View File

@ -3,7 +3,7 @@
Plugin Name: Auth Manager Plus Plugin Name: Auth Manager Plus
Plugin URI: https://github.com/joshp23/YOURLS-AuthMgrPlus Plugin URI: https://github.com/joshp23/YOURLS-AuthMgrPlus
Description: Role Based Access Controlls with seperated user data for authenticated users 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 <ian.barber@gmail.com> Author: Josh Panter, nicwaller, Ian Barber <ian.barber@gmail.com>
Author URI: https://unfettered.net Author URI: https://unfettered.net
*/ */
@ -449,7 +449,7 @@ function authMgrPlus_activated() {
} }
if(!$activated) { if(!$activated) {
if ($version) { if ($version) {
$sql = "ALTER TABLE `$table` ADD `user` VARCHAR(255) NULL)"; $sql = "ALTER TABLE `$table` ADD `user` VARCHAR(255) NULL";
$insert = $ydb->fetchAffected($sql); $insert = $ydb->fetchAffected($sql);
} else { } else {
$ydb->query("ALTER TABLE `$table` ADD `user` VARCHAR(255) NULL"); $ydb->query("ALTER TABLE `$table` ADD `user` VARCHAR(255) NULL");