Commit 7b0332c3 authored by Jeroen's avatar Jeroen

Fixed an error that would not add an employee under certain ceconstances

parent d07c78b1
Pipeline #1364 passed with stage
in 1 second
......@@ -110,7 +110,7 @@ class AddEmployee{
public function insertEmployee($organisation, $post){
foreach($post as $p){
if($p['email'] !== '' && $p['pgp-id'] !== '' && $p['contract_hours'] !== ''){
if( $p['name'] !== '' || $p['nickname'] ){
$expertise = $p['expertise']; // First get the employees 'expertise' from $_POST
unset($p['expertise']); // Then remove it from the array
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment