mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 17:50:13 +01:00
fixed showing emails on settings page
This commit is contained in:
parent
a198aa11e8
commit
3a539bcaf7
@ -20,24 +20,24 @@ class ControllerUserSettings extends Controller {
|
|||||||
$this->load->model('group/group');
|
$this->load->model('group/group');
|
||||||
|
|
||||||
$this->document->title = $this->data['text_settings'];
|
$this->document->title = $this->data['text_settings'];
|
||||||
|
|
||||||
$d = $r = '';
|
$d = $r = '';
|
||||||
$auditemails = $auditdomains = $auditgroups = $auditfolders = '';
|
$auditemails = $auditdomains = $auditgroups = $auditfolders = '';
|
||||||
|
|
||||||
$auditemails = $this->model_user_user->get_emails_by_uid($_SESSION['uid']);
|
$auditemails = implode(", ", $_SESSION['emails']);
|
||||||
|
|
||||||
foreach($_SESSION['auditdomains'] as $d) {
|
foreach($_SESSION['auditdomains'] as $d) {
|
||||||
$auditdomains .= ', '.$d;
|
$auditdomains .= ', '.$d;
|
||||||
}
|
}
|
||||||
$auditdomains = preg_replace("/^,\s/", "", $auditdomains);
|
$auditdomains = preg_replace("/^,\s/", "", $auditdomains);
|
||||||
|
|
||||||
$auditgroups = preg_replace("/\s/", ", ", $this->model_group_group->get_groups_by_uid($_SESSION['uid']));
|
$auditgroups = preg_replace("/\s/", ", ", $this->model_group_group->get_groups_by_uid($_SESSION['uid']));
|
||||||
|
|
||||||
foreach ($_SESSION['folders'] as $r) {
|
foreach ($_SESSION['folders'] as $r) {
|
||||||
$auditfolders .= ', '.$r;
|
$auditfolders .= ', '.$r;
|
||||||
}
|
}
|
||||||
$auditfolders = preg_replace("/^,\s/", "", $auditfolders);
|
$auditfolders = preg_replace("/^,\s/", "", $auditfolders);
|
||||||
|
|
||||||
if($auditemails) { $this->data['emails'] = $auditemails; } else { $this->data['emails'] = $this->data['text_none_found']; }
|
if($auditemails) { $this->data['emails'] = $auditemails; } else { $this->data['emails'] = $this->data['text_none_found']; }
|
||||||
if($auditdomains) { $this->data['domains'] = $auditdomains; } else { $this->data['domains'] = $this->data['text_none_found']; }
|
if($auditdomains) { $this->data['domains'] = $auditdomains; } else { $this->data['domains'] = $this->data['text_none_found']; }
|
||||||
if($auditgroups) { $this->data['groups'] = $auditgroups; } else { $this->data['groups'] = $this->data['text_none_found']; }
|
if($auditgroups) { $this->data['groups'] = $auditgroups; } else { $this->data['groups'] = $this->data['text_none_found']; }
|
||||||
|
Loading…
Reference in New Issue
Block a user