Your Name hace 3 años
padre
commit
f841917e0b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tool/work/lib/Appoint.php

+ 1 - 1
tool/work/lib/Appoint.php

@@ -14,7 +14,7 @@ Class Appoint
 				if ($res['id'] !=  $id['where_id']){
 					Dever::alert('部门已存在');
 				} 
-			} else {
+			} elseif ($res) {
 				Dever::alert('部门已存在');
 			}