Your Name 3 years ago
parent
commit
f841917e0b
1 changed files with 1 additions and 1 deletions
  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('部门已存在');
 			}