* judge the zentao config before login to zentao.

This commit is contained in:
wangchunsheng
2011-11-09 02:51:01 +00:00
parent 6001420233
commit 137e7e7f2d
+1
View File
@@ -106,6 +106,7 @@ class syncer
*/
public function loginZentao()
{
if(!$this->config->zentao->path or !$this->config->zentao->user) die("You must set the zentao path and user.\n");
$zentaoConfig = $this->config->zentao;
$this->zentaoClient = new ztclient($zentaoConfig->path, $zentaoConfig->user, $zentaoConfig->password);
}