Skip to content

Commit

Permalink
Fix E_WARNINGs for proj/grp membership.
Browse files Browse the repository at this point in the history
  • Loading branch information
jangliss committed Nov 11, 2022
1 parent dc684a6 commit eec90d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dept_groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Update if form was submitted and action is set
if(isset($_POST['action']) && $_POST['action']=="Submit"){
$grpMembers=$_POST['chosen'];
$grpMembers=!empty($_POST['chosen'])?$_POST['chosen']:array();
$dept->AssignContacts($grpMembers);
}

Expand Down
2 changes: 1 addition & 1 deletion people_depts.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Update if form was submitted and action is set
if(isset($_POST['action']) && $_POST['action']=="Submit"){
$grpMembers=$_POST['chosen'];
$grpMembers=!empty($_POST['chosen'])?$_POST['chosen']:array();
$person->AssignDepartments($grpMembers);
}

Expand Down
2 changes: 1 addition & 1 deletion project_members.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

// Update if form was submitted and action is set
if(isset($_POST['action']) && $_POST['action']=="Submit"){
$grpMembers=$_POST['chosen'];
$grpMembers=!empty($_POST['chosen'])?$_POST['chosen']:array();
if (( sizeof( $grpMembers ) > 0 ) && isset( $_REQUEST['projectid'] )) {
$ProjectID = $_REQUEST['projectid'];
ProjectMembership::clearMembership( $ProjectID );
Expand Down

0 comments on commit eec90d1

Please sign in to comment.