summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-02-21 17:27:14 +0100
committerAleksander Machniak <machniak@kolabsys.com>2012-02-21 17:27:14 +0100
commit65fb0ab82b0c83dbcf30a767d5b574cfe90e8784 (patch)
tree130687a706ece890c285cbaa2fe560987ef22250
parentcea380b5161a7bcbb6e21e1ad919305a9ca6f584 (diff)
downloadwebadmin-65fb0ab82b0c83dbcf30a767d5b574cfe90e8784.tar.gz
Fix SQL error
-rw-r--r--lib/Auth/LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index bce4735..b16c270 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -368,7 +368,7 @@ class LDAP
}
else {
$db = SQL::get_instance();
- $_key = $db->fetch_assoc($db->query("SELECT key FROM user_types WHERE id = ?", $type));
+ $_key = $db->fetch_assoc($db->query("SELECT `key` FROM user_types WHERE id = ?", $type));
$type_str = $_key['key'];
}