From 137e7e7f2d32c54825b568bcfcf62a91c0c5f4d5 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 9 Nov 2011 02:51:01 +0000 Subject: [PATCH] * judge the zentao config before login to zentao. --- module/svn/syncer/syncer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/svn/syncer/syncer.php b/module/svn/syncer/syncer.php index d0a58c019c..2c15417bed 100644 --- a/module/svn/syncer/syncer.php +++ b/module/svn/syncer/syncer.php @@ -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); }