2014-04-15 73 views
0

在PHP和I'im得到即時通訊新和錯誤」 缺少論據2 EduSuckr :: getParticipantComments(),稱爲C:\ XAMPP \ htdocs中\埃爾格\ MOD \ edufeedr \視圖\默認\ edufeedr \ participant_profile.php上線55和限定」在文件C:\ XAMPP \ htdocs中\埃爾格\ MOD \ edufeedr \ edusuckr.php(線110)「缺少對getParticipantComments參數2(),

participant_profile.php線55

$comments = $es->getParticipantComments(array($vars['entity']->guid, $vars['participant']->blog_base)); 
     var_dump($comments); 
     if (!($comments && is_array($comments))) { 
      $comments = array(); 

和文件edusuckr.php線110

function getParticipantComments($course_guid, $participant_id) { 
      return unserialize($this->client->call('getParticipantComments', array($course_guid, $participant_id))); 
     } 

有人可以幫忙,請不要向我解釋我做錯了什麼。

謝謝!

回答

2

你正在用一個參數來調用函數,這個參數是一個數組。你應該用兩個獨立的參數來調用它,而不是把它們組合成一個數組。

$comments = $es->getParticipantComments($vars['entity']->guid, $vars['participant']->blog_base);