From: Marcel Werk Date: Mon, 8 Jul 2013 13:06:48 +0000 (+0200) Subject: Small optimization X-Git-Tag: 2.0.0_Beta_5~90^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=019702d241ab6d259a10ebb6eb63b6a98be95924;p=GitHub%2FWoltLab%2FWCF.git Small optimization --- 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;