* code for task#1052.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user