diff --git a/module/company/control.php b/module/company/control.php index 1eeb8fc949..e3633a5e63 100644 --- a/module/company/control.php +++ b/module/company/control.php @@ -72,7 +72,7 @@ class company extends control /* Get users. */ $users = $this->company->getUsers($type, $queryID, $deptID, $sort, $pager); /* Remove passwd. */ - foreach($users as $user) $user->password = ''; + foreach($users as $user) unset($user->password); /* Assign. */ $this->view->title = $this->lang->company->index . $this->lang->colon . $this->lang->dept->common;