ошибки Undefined
This commit is contained in:
@@ -88,7 +88,7 @@ if ($u->info['bithday'] == '01.01.1800' && $u->info['inTurnirnew'] == 0) {
|
||||
|
||||
#--------для общаги, и позже для почты
|
||||
$sleep = $u->testAction('`vars` = "sleep" AND `uid` = "' . $u->info['id'] . '" LIMIT 1', 1);
|
||||
if ($u->room['file'] != "room_hostel" && $u->room['file'] != "an/room_hostel" && $sleep['id'] > 0) {
|
||||
if ($u->room['file'] != "room_hostel" && $u->room['file'] != "an/room_hostel" && !empty($sleep)) {
|
||||
Db::sql('update actions set vars = ? where id = ?', ['unsleep', $sleep['id']]);
|
||||
}
|
||||
if ($u->room['file'] == "room_hostel" || $u->room['file'] == "post") {
|
||||
|
||||
Reference in New Issue
Block a user