diff --git a/module/user/view/login.html.php b/module/user/view/login.html.php
index e18acaea76..099833225e 100644
--- a/module/user/view/login.html.php
+++ b/module/user/view/login.html.php
@@ -90,7 +90,7 @@ if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js');
config->webRoot) !== false)
+if(strpos('|/zentao/|/pro/|/biz/|', "|{$this->config->webRoot}|") !== false)
{
$databases = array('zentao' => 'zentao', 'zentaopro' => 'zentaopro', 'zentaobiz' => 'zentaobiz', 'zentaoep' => 'zentaoep');
if($this->config->webRoot == '/zentao/') unset($databases['zentao']);