]> andersk Git - sql-web.git/blobdiff - lib/security.lib.php
error code color
[sql-web.git] / lib / security.lib.php
index fca7a0f2279bfd399bc976dc9d2607ff96a0c968..77baf2005ceed3f8fe3293ee1b93aa20f644da42 100644 (file)
@@ -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;
This page took 0.029903 seconds and 4 git commands to generate.