[fix] wrong field name in account creation in MySQL
This commit is contained in:
parent
f5e525d8ad
commit
71ed8bf5f4
|
@ -952,7 +952,7 @@ class m_mysql {
|
||||||
global $db, $msg, $cuid, $mem;
|
global $db, $msg, $cuid, $mem;
|
||||||
$msg->log("mysql", "alternc_add_member");
|
$msg->log("mysql", "alternc_add_member");
|
||||||
// checking for the phpmyadmin user
|
// 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()) {
|
if ($db->num_rows()) {
|
||||||
$myadm = $db->f("name");
|
$myadm = $db->f("name");
|
||||||
$password = $db->f("password");
|
$password = $db->f("password");
|
||||||
|
|
Loading…
Reference in New Issue