removed some unneeded references

This commit is contained in:
Roland Gruber 2006-07-01 08:05:49 +00:00
parent 12edc0beca
commit 033c774737
1 changed files with 7 additions and 7 deletions

View File

@ -150,7 +150,7 @@ class posixGroup extends baseModule {
* to show a page with all attributes. * to show a page with all attributes.
* It will output a complete html-table * It will output a complete html-table
*/ */
function display_html_attributes(&$post) { function display_html_attributes($post) {
// check password format if called the first time // check password format if called the first time
if (!isset($this->userPassword_invalid)) { if (!isset($this->userPassword_invalid)) {
if ($this->attributes['userPassword'][0]) { if ($this->attributes['userPassword'][0]) {
@ -221,7 +221,7 @@ class posixGroup extends baseModule {
* @param array $post HTTP-POST * @param array $post HTTP-POST
* @return array meta HTML output * @return array meta HTML output
*/ */
function display_html_user(&$post) { function display_html_user($post) {
// load list with all users // load list with all users
$dn_users = $_SESSION['cache']->get_cache(array('uid', 'gidNumber'), 'posixAccount', 'user'); $dn_users = $_SESSION['cache']->get_cache(array('uid', 'gidNumber'), 'posixAccount', 'user');
$users = array(); $users = array();
@ -269,7 +269,7 @@ class posixGroup extends baseModule {
* @param array $post HTTP-POST * @param array $post HTTP-POST
* @return array meta HTML code * @return array meta HTML code
*/ */
function display_html_password(&$post) { function display_html_password($post) {
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('Password') ), 0 => array('kind' => 'text', 'text' => _('Password') ),
1 => array('kind' => 'input', 'name' => 'userPassword', 'type' => 'password', 'size' => '20', 'maxlength' => '255', 'value' => ""), 1 => array('kind' => 'input', 'name' => 'userPassword', 'type' => 'password', 'size' => '20', 'maxlength' => '255', 'value' => ""),
@ -709,7 +709,7 @@ class posixGroup extends baseModule {
* @param array $post HTTP-POST values * @param array $post HTTP-POST values
* @return array list of info/error messages * @return array list of info/error messages
*/ */
function process_user(&$post) { function process_user($post) {
if (!isset($this->attributes['memberUid'])) $this->attributes['memberUid'] = array(); if (!isset($this->attributes['memberUid'])) $this->attributes['memberUid'] = array();
if (isset($post['addusers']) && isset($post['addusers_button'])) { // Add users to list if (isset($post['addusers']) && isset($post['addusers_button'])) { // Add users to list
// Add new user // Add new user
@ -734,8 +734,8 @@ class posixGroup extends baseModule {
* @param array $post HTTP-POST values * @param array $post HTTP-POST values
* @return array list of info/error messages * @return array list of info/error messages
*/ */
function process_password(&$post) { function process_password($post) {
if ($post['form_subpage_posixGroup_attributes_back']) return; if ($post['form_subpage_posixGroup_attributes_back']) return array();
$messages = array(); $messages = array();
if ($post['userPassword'] != $post['userPassword2']) { if ($post['userPassword'] != $post['userPassword2']) {
$messages['userPassword'][] = $this->messages['userPassword'][0]; $messages['userPassword'][] = $this->messages['userPassword'][0];
@ -748,7 +748,7 @@ class posixGroup extends baseModule {
$this->userPassword_lock = false; $this->userPassword_lock = false;
$this->userPassword_nopassword = false; $this->userPassword_nopassword = false;
} }
if (sizeof($messages) > 0) return $messages; return $messages;
} }
/** /**