Small optimization
authorMarcel Werk <burntime@woltlab.com>
Mon, 8 Jul 2013 13:06:48 +0000 (15:06 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 8 Jul 2013 13:06:48 +0000 (15:06 +0200)
wcfsetup/install/files/lib/data/user/UserProfile.class.php

index 02fc0b59911ac8cb7da9cd23b84a32f6ba746996..456758d7f8af25f0bd88f60051957df48f29258b 100644 (file)
@@ -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;