Browse Source

-Employee : Fix vérification manager

Théo LECOQ 1 year ago
parent
commit
2b702d5720
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugin/employee/action.php

+ 1 - 1
plugin/employee/action.php

@@ -147,7 +147,7 @@
 		if(!empty($_['job']) && is_numeric($_['job'])) $item->job = $_['job'];
 		$item->jobDescription = $_['jobDescription'];
 		if(!empty($_['statute']) && is_numeric($_['statute'])) $item->statute = $_['statute'];
-		$item->manager = $_['manager'];
+		if(!empty($_['manager']) && is_numeric($_['manager'])) $item->manager = $_['manager'];
 		$item->workplace = $_['workplace'];
 		if(!empty($_['account'])) $item->account = $_['account'];
 		if(isset($_['hardware'])) $item->hardware = json_encode($_['hardware']);