浏览代码

会议时间段重复审批bug

qr 1 月之前
父节点
当前提交
8d00745742
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      webmain/model/meetingModel.php

+ 8 - 4
webmain/model/meetingModel.php

@@ -69,8 +69,10 @@ class meetingClassModel extends Model
                     || ($sdt<$enddt && $edt>=$enddt)
                     || ($sdt>$startdt && $edt<$enddt)
                     || ($sdt==$startdt && $edt==$enddt)
-                )$msg = '该会议室的时间段已被申请过了,主题“'.$rs['title'].'”';
-                return $msg;
+                ) {
+                    $msg = '该会议室的时间段已被申请过了,主题“'.$rs['title'].'”';
+                    return $msg;
+                }
             }
 
             if ($type == 1) {
@@ -79,8 +81,10 @@ class meetingClassModel extends Model
                     || ($sdt<$enddt && $edt>=$enddt)
                     || ($sdt>$startdt && $edt<$enddt)
                     || ($sdt==$startdt && $edt==$enddt)
-                )$msg = '该会议室的时间段已被申请过了,主题“'.$rs['title'].'”';
-                return $msg;
+                ) {
+                    $msg = '该会议室的时间段已被申请过了,主题“'.$rs['title'].'”';
+                    return $msg;
+                }
             }
         }
         return $msg;