Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support warning message
Ashleenahpage
Posted on 02 Jul 2009, 01:00:44

Access: Member
Total Posts: 38
Joined: 2009-05-31

i just updated to 3.2 and ever since i have gotten this message;
Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home1/skuisine/public_html/ashleenah/news/index.php on line 420
how do i fix this?
#573
Chris
Posted on 02 Jul 2009, 01:17:47

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Ah this is my fault. Because you can now add posts to multiple categories the way you show your news has changed slightly.

When including your news instead of using the $cat and $author variables, you now use the following arrays.

Code:
<?php
$cat
[] = 'Cat1';
$cat[] = 'Cat2';
$author[] = 'Author1';
$author[] = 'Author2';
include 
'news/index.php';
?>


I'll update the news page with this bit of information so others don't have the same problem.
#574
Last edited by Chris at 2009-07-02 01:26:46 Reason:
Ashleenahpage
Posted on 03 Jul 2009, 01:33:18

Access: Member
Total Posts: 38
Joined: 2009-05-31

thank you so much for your help :)
#575
Network-13.com © 2013