From 71ed8bf5f4ad2d58b6cd47bc8c16dc3830929d40 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Tue, 5 Jun 2018 08:41:59 +0200 Subject: [PATCH] [fix] wrong field name in account creation in MySQL --- bureau/class/m_mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_mysql.php b/bureau/class/m_mysql.php index d17952c3..3c11f9bc 100644 --- a/bureau/class/m_mysql.php +++ b/bureau/class/m_mysql.php @@ -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");