mirror of
https://github.com/e107inc/e107.git
synced 2025-07-17 04:51:16 +02:00
Merge pull request #496 from Moc/master
Fixed PHP notice in user profile (forumpost count) and syntax cleanup
This commit is contained in:
@@ -123,7 +123,7 @@ class user_shortcodes extends e_shortcode
|
||||
e107::setRegistry('total_forumposts', $forumposts);
|
||||
$user_forumposts = $sql->count("forum_thread","(*)","where thread_user=".$this->var['user_id']);
|
||||
}
|
||||
return ($forumposts!==0) ? round(($user_forumposts/$forumposts) * 100, 2): 0;
|
||||
return ($forumposts != 0) ? round(($user_forumposts/$forumposts) * 100, 2) : 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user