From 019702d241ab6d259a10ebb6eb63b6a98be95924 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 8 Jul 2013 15:06:48 +0200 Subject: [PATCH] Small optimization --- wcfsetup/install/files/lib/data/user/UserProfile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php index 02fc0b5991..456758d7f8 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php @@ -296,7 +296,7 @@ class UserProfile extends DatabaseObjectDecorator implements IBreadcrumbProvider * @return boolean */ public function isOnline() { - if ($this->lastActivityTime && $this->lastActivityTime > (TIME_NOW - USER_ONLINE_TIMEOUT) && $this->canViewOnlineStatus()) { + if ($this->getLastActivityTime() > (TIME_NOW - USER_ONLINE_TIMEOUT) && $this->canViewOnlineStatus()) { return true; } return false; -- 2.20.1