[fix] wrong field name in account creation in MySQL

This commit is contained in:
Benjamin Sonntag 2018-06-05 08:41:59 +02:00
parent f5e525d8ad
commit 71ed8bf5f4
1 changed files with 1 additions and 1 deletions

View File

@ -952,7 +952,7 @@ class m_mysql {
global $db, $msg, $cuid, $mem;
$msg->log("mysql", "alternc_add_member");
// checking for the phpmyadmin user
$db->query("SELECT name,password FROM dbusers WHERE uid= ? AND Type='ADMIN';", array($cuid));
$db->query("SELECT name,password FROM dbusers WHERE uid= ? AND enable='ADMIN';", array($cuid));
if ($db->num_rows()) {
$myadm = $db->f("name");
$password = $db->f("password");