From 30c8a92f332c389465d6168c2bb31f7af7933b4d Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Mon, 6 Oct 2014 17:44:20 +0200 Subject: [PATCH] same nested test removed --- web/Obj/user.phh | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/web/Obj/user.phh b/web/Obj/user.phh index 96706b8..b3cbf51 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -749,19 +749,16 @@ class User { log_rd2("LOGOUT BYE BYE!!"); log_auth($this->sess, "Explicit logout."); - if ($this->the_end == TRUE) { - $this->reset(); - - if ($this->subst == 'sitdown') { - log_load("ROOM WAKEUP"); - $this->room->room_wakeup($this); - } - else if ($this->subst == 'standup') - $this->room->room_outstandup($this); - else - log_rd2("LOGOUT FROM WHAT ???"); - - } /* if ($this->the_end == TRUE) { ... */ + $this->reset(); + + if ($this->subst == 'sitdown') { + log_load("ROOM WAKEUP"); + $this->room->room_wakeup($this); + } + else if ($this->subst == 'standup') + $this->room->room_outstandup($this); + else + log_rd2("LOGOUT FROM WHAT ???"); } /* if ($this->the_end == TRUE) { ... */ } /* if ($this->rd_step < $this->step) { */ } /* else of if ($this->rd_step == -1) { */ -- 2.17.1