Selaa lähdekoodia

Fixed display of the number of posts and topics in the profile

If the user had at least one post, then last_post contains the timestamp.
Visman 5 vuotta sitten
vanhempi
commit
6d45bd2a46
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 4
      app/Models/Pages/Profile/View.php

+ 1 - 4
app/Models/Pages/Profile/View.php

@@ -227,10 +227,7 @@ class View extends Profile
             'value'   => \ForkBB\dt($this->curUser->last_post, true),
             'caption' => __('Last post info'),
         ];
-        if (
-            $this->curUser->num_posts
-            || $this->curUser->num_topics
-        ) {
+        if ($this->curUser->last_post > 0) {
             if ('1' == $this->user->g_search) {
                 $fields['posts'] = [
                     'class'   => 'pline',