Details
-
New Feature
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
Security Level: Public (Public issues)
-
None
Description
https://www.joomlart.com/forums/topic/ja-news-featured-and-k2-2-7-1/
Hello
I had also posted this problem in the K2 Forum. Now a user of K2 and also the JA News Featured module seems to have found the problem. I made the change to the mentioned file and it seems that the problem has gone.
Here the link to the forum post in K2 community: K2 Forum post
The problem is in the following file: mod_janews_featured/helpers/adapter/k2.php
The problem is in the function "function getTotal(&$helper, $params)"
This line was wrong $aid = $user->get(‘aid’);
The correct one is $aid = $user->get(‘aid’) ? $user->get(‘aid’) : 1;
Here my complete code
Hello
I had also posted this problem in the K2 Forum. Now a user of K2 and also the JA News Featured module seems to have found the problem. I made the change to the mentioned file and it seems that the problem has gone.
Here the link to the forum post in K2 community: K2 Forum post
The problem is in the following file: mod_janews_featured/helpers/adapter/k2.php
The problem is in the function "function getTotal(&$helper, $params)"
This line was wrong $aid = $user->get(‘aid’);
The correct one is $aid = $user->get(‘aid’) ? $user->get(‘aid’) : 1;
Here my complete code