fix sql syntax error #5
This commit is contained in:
parent
e800a1222e
commit
1a3aab0ef8
@ -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 <ian.barber@gmail.com>
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user