瀏覽代碼

add static fonction

cedric 9 月之前
父節點
當前提交
44453620c7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      classes/chcreapost.php

+ 1 - 1
classes/chcreapost.php

@@ -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();