Commit be2cd450 authored by Jeroen's avatar Jeroen

Merge branch 'dev'

parents 14494b53 7b0332c3
Pipeline #1365 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