fixed minor webui bugs

This commit is contained in:
SJ
2012-07-06 15:02:23 +02:00
parent 2d803e31d3
commit baa062cc0a
5 changed files with 11 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ class ModelUserAuth extends Model {
$_SESSION['domain'] = $query->row['domain'];
$_SESSION['realname'] = $query->row['realname'];
$_SESSION['emails'] = $this->model_user_user->get_users_all_email_addresses($query->row['uid'], $query->row['gid']);
$_SESSION['emails'] = $this->model_user_user->get_users_all_email_addresses($query->row['uid']);
AUDIT(ACTION_LOGIN, $username, '', '', 'successful auth against user table');

View File

@@ -45,7 +45,7 @@ class ModelUserUser extends Model {
}
public function get_users_all_email_addresses($uid = 0, $gid = 0) {
public function get_users_all_email_addresses($uid = 0) {
$data = array();
$uids = $uid;
@@ -73,7 +73,7 @@ class ModelUserUser extends Model {
if(isset($query->rows)) {
foreach ($query->rows as $q) {
if(!in_array($email, $data)) { array_push($data, $q['email']); }
if(!in_array($q['email'], $data)) { array_push($data, $q['email']); }
}
}