php: fix bug when logout admin