|
@@ -226,18 +226,18 @@ class BeanRepository
|
|
|
foreach ($chatrooms as &$chatroom) {
|
|
|
if ($chatroom['start']<$chatroom['end']) {
|
|
|
if ($current<$chatroom['start'] || $current>$chatroom['end']) {
|
|
|
- $chatroom['id_open'] = 0;
|
|
|
+ $chatroom['is_open'] = 0;
|
|
|
} else {
|
|
|
- $chatroom['id_open'] = 1;
|
|
|
+ $chatroom['is_open'] = 1;
|
|
|
}
|
|
|
} elseif ($chatroom['start']>$chatroom['end']) {
|
|
|
if ($current<$chatroom['end']) {
|
|
|
- $chatroom['id_open'] = 0;
|
|
|
+ $chatroom['is_open'] = 0;
|
|
|
} else {
|
|
|
- $chatroom['id_open'] = 1;
|
|
|
+ $chatroom['is_open'] = 1;
|
|
|
}
|
|
|
} else {
|
|
|
- $chatroom['id_open'] = 1;
|
|
|
+ $chatroom['is_open'] = 1;
|
|
|
}
|
|
|
}
|
|
|
$star_home['chatroom'] = $chatrooms;
|