|
@@ -432,7 +432,7 @@ class BeanRepository
|
|
$chatroom['is_open'] = 1;
|
|
$chatroom['is_open'] = 1;
|
|
}
|
|
}
|
|
} elseif ($chatroom['start']>$chatroom['end']) {
|
|
} elseif ($chatroom['start']>$chatroom['end']) {
|
|
- if ($current<$chatroom['end']) {
|
|
|
|
|
|
+ if ($current>$chatroom['end'] && $current<$chatroom['start']) {
|
|
$chatroom['is_open'] = 0;
|
|
$chatroom['is_open'] = 0;
|
|
} else {
|
|
} else {
|
|
$chatroom['is_open'] = 1;
|
|
$chatroom['is_open'] = 1;
|