diff --git a/admin/committees.php b/admin/committees.php index 5823896..b0aa40d 100644 --- a/admin/committees.php +++ b/admin/committees.php @@ -177,6 +177,12 @@ if($_POST['save']) if($_POST['access_super']=="Y") $a_super='Y'; else $a_super='N'; $access="access_admin='$a_admin', access_config='$a_config', access_super='$a_super', "; + $pass="password='".mysql_escape_string(stripslashes($_POST['password']))."', "; + } + else + { + $access=""; + $pass=""; } //check for unique email address @@ -200,7 +206,7 @@ if($_POST['save']) mysql_query("UPDATE committees_members SET ". "name='".mysql_escape_string(stripslashes($_POST['name']))."', ". - "password='".mysql_escape_string(stripslashes($_POST['password']))."', ". + $pass. "organization='".mysql_escape_string(stripslashes($_POST['organization']))."', ". $emailupdate. $emailprivateupdate. @@ -268,7 +274,9 @@ if($_GET['edit'] || $edit) echo "
".i18n("Name").": | name)."\" /> |
".i18n("Password").": | password\" /> |
".i18n("Password").": | password\" /> |