浏览代码

-Employee : Fix vérification manager

Théo LECOQ 2 年之前
父节点
当前提交
2b702d5720
共有 1 个文件被更改,包括 1 次插入1 次删除
  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']);