MODs: Ja
Dein Wissensstand: Grundwissen
Link zu Deinem Forum: http://www.niedermayr.cc/forum
PHP Version:
MySQL Version:
Was hast Du gemacht, bevor das Problem aufgetreten ist?
UIP2DB Mod eingebaut
Was hast Du bereits versucht um das Problem zu lösen?
Habe mir die betreffende Zeile im Mod angesehen, und eigentlich ist alles korrekt!?
Fehlerbeschreibung und Nachricht
Ich bin leider erst etwas spät draufgekommen (suche selber selten im eigenen Board), aber die suche produziert bei mir seit dem UIP2DB Mod folgende Warnung:
die betreffenden Zeilen sind:Warning: in_array(): Wrong datatype for second argument in /home/n/niedermayr.cc/public_html/forum/search.php on line 1403
Code: Alles auswählen
//<!-- BEGIN Unread Post Information to Database Mod -->
}
else
{
if ((in_array($topic_id, $unread_new_topics) || in_array($topic_id, $unread_edit_topics)) && (!in_array($forum_id, $always_read_forums) || !in_array($topic_id, $always_read_topics)))
{
$folder_image = $folder_new;
$folder_alt = $lang['New_posts'];
$newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> ';
if((in_array($topic_id, $unread_new_topics) && in_array($topic_id, $unread_edit_topics)) && ($userdata['user_upi2db_new_word'] && $userdata['user_upi2db_edit_word']))
{
$topic_type = $lang['upi2db_post_edit'] . $lang['upi2db_post_and'] . $lang['upi2db_post_new'] . ": " . $topic_type;
}
else
{
if(in_array($topic_id, $unread_new_topics) && $userdata['user_upi2db_new_word'])
{
$topic_type = $lang['upi2db_post_new'] . ": " . $topic_type;
}
if(in_array($topic_id, $unread_edit_topics) && $userdata['user_upi2db_edit_word'])
{
$topic_type = $lang['upi2db_post_edit'] . ": " . $topic_type;
}
}
}
else
{
$folder_image = $folder;
$folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
$newest_post_img = '';
}
}
//<!-- END Unread Post Information to Database Mod -->
1403 ist diese hier:
Code: Alles auswählen
if ((in_array($topic_id, $unread_new_topics) || in_array($topic_id, $unread_edit_topics)) && (!in_array($forum_id, $always_read_forums) || !in_array($topic_id, $always_read_topics)))