* code for task#1052.

This commit is contained in:
zhujinyong
2013-01-05 01:52:09 +00:00
parent 73609e2512
commit b1cccb035a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -76,6 +76,7 @@ class mail extends control
$this->view->position[] = html::a(inlink('index'), $this->lang->mail->common);
$this->view->position[] = $this->lang->mail->edit;
$this->view->mailExist = $this->dao->select('email')->from(TABLE_USER)->where('email')->ne('')->fetch();
$this->view->mailConfig = $mailConfig;
$this->display();
}
+1 -1
View File
@@ -59,7 +59,7 @@ include '../../common/view/header.html.php';
<td colspan='2' class='a-center'>
<?php
echo html::submitButton();
if($this->config->mail->turnon) echo html::linkButton($lang->mail->test, inlink('test'));
if($this->config->mail->turnon and $mailExist) echo html::linkButton($lang->mail->test, inlink('test'));
?>
</td>
</tr>