* finish task #2275.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<td class='text-left'>
|
||||
<?php
|
||||
if(common::hasPriv('cron', 'toggle') and !empty($cron->command)) echo html::a(inlink('toggle', "id=$cron->id&status=" . ($cron->status == 'stop' ? 'normal' : 'stop')), $cron->status == 'stop' ? $lang->cron->toggleList['start'] : $lang->cron->toggleList['stop'], 'hiddenwin');
|
||||
if($cron->buildin == 0 and common::hasPriv('cron', 'edit')) echo html::a(inlink('edit', "id=$cron->id"), $lang->edit);
|
||||
if(!empty($cron->command) and common::hasPriv('cron', 'edit')) echo html::a(inlink('edit', "id=$cron->id"), $lang->edit);
|
||||
if($cron->buildin == 0 and common::hasPriv('cron', 'delete')) echo html::a(inlink('delete', "id=$cron->id"), $lang->delete, 'hiddenwin');
|
||||
?>
|
||||
</td>
|
||||
|
||||
@@ -169,7 +169,11 @@ class report extends control
|
||||
$this->loadModel('mail');
|
||||
|
||||
/* Check mail turnon.*/
|
||||
if(!$this->config->mail->turnon) die("You should turn on the Email feature first.\n");
|
||||
if(!$this->config->mail->turnon)
|
||||
{
|
||||
echo "You should turn on the Email feature first.\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach($reminder as $user => $mail)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user