Skip to content

Commit

Permalink
Fix set default email
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolutionPHP committed Mar 10, 2021
1 parent f49d17f commit e4c259f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hdz/app/Controllers/Staff/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,10 @@ public function emails()

$emailsLib = new Emails();
if($this->request->getMethod() == 'post'){
$error_msg = 'This is not possible in demo version.';
}else{
if($this->request->getPost('action') == 'set_default')
if(defined('HDZDEMO')){
$error_msg = 'This is not possible in demo version.';
}
elseif($this->request->getPost('action') == 'set_default')
{
$emailsLib->set_default($this->request->getPost('email_id'));
$this->session->setFlashdata('form_success',lang('Admin.settings.defaultEmailChanged'));
Expand Down

0 comments on commit e4c259f

Please sign in to comment.