13

MOD の 1 つがこのエラーを表示することに気付いたとき、私は自分の Web サイトを開こうとしています。

致命的なエラー: 行 303 の /var/www/vbsubscribetouser.php の配列としてタイプ mysqli_result のオブジェクトを使用できません

303行目に行きましたが、これが私が見つけたものです:

//Check if requested username can be followed.
if (in_array($followingdata['usergroupid'], explode("|", $vbulletin->options['subscribetouser_usergroups_cannot']))){

303 行目から始まるすべてのコードを次に示します。

//Check if requested username can be followed.
if (in_array($followingdata['usergroupid'], explode("|", $vbulletin->options['subscribetouser_usergroups_cannot']))){
    exit;
}

if ($followinginfo[subscribers] > 0){
    $user_followers = $followinginfo[followers].$userinfo[userid].'|';
}
else{
    $user_followers = '|'.$userinfo[userid].'|';
}

$vbulletin->db->query_write("
    UPDATE " . TABLE_PREFIX . "user
    SET subscribers = subscribers + 1, `followers` = '$user_followers'
    WHERE userid = $followinginfo[userid]
");

私は PHP コーディングの専門家ではないので、ウェブサイトを開く前に少しでも役に立てば幸いです。ヘルプ/提案はありますか?

どうもありがとうございました!

4

1 に答える 1