@@ -527,7 +527,7 @@ class Chcreapost extends ObjectModel
*
* @return [type]
*/
- protected function getViewedProducts($productIds)
+ protected static function getViewedProducts($productIds)
{
if (!empty($productIds)) {
$context = Context::getContext();