X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/1b2f1c8d8d2802291feb23e002bf4cb6a8487884..4a77eeb5dfec8bc3e43f8bf2ddfe6d24f8d9c83b:/lib/security.lib.php diff --git a/lib/security.lib.php b/lib/security.lib.php index fca7a0f..77baf20 100644 --- a/lib/security.lib.php +++ b/lib/security.lib.php @@ -203,7 +203,7 @@ class User { } } function addDB($name) { - if (in_array($name, $this->getDBList())) return false; + if (in_array($name, array_keys($this->getDBList()))) return false; if (!addDB($name, $this->getUserId())) return false; $this->setAccess($name); return true;