lordphate Posted August 18, 2006 Share Posted August 18, 2006 Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/arshem/public_html/dating/functions.php on line 2112Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/arshem/public_html/dating/functions.php on line 2112Warning: array_merge() [function.array-merge]: Argument #3 is not an array in /home/arshem/public_html/dating/functions.php on line 2112Warning: array_merge() [function.array-merge]: Argument #4 is not an array in /home/arshem/public_html/dating/functions.php on line 2112[code]elseif($deg=='all'){$num=count_network($m_id,"1","num")+count_network($m_id,"2","num")+count_network($m_id,"3","num")+count_network($m_id,"4","num");$friend=array_merge(count_network($m_id,"1","ar"),count_network($m_id,"2","ar"),count_network($m_id,"3","ar"),count_network($m_id,"4","ar")); <==== LIne 2112 } [/code] Quote Link to comment Share on other sites More sharing options...
Barand Posted August 18, 2006 Share Posted August 18, 2006 I'm guessing that your function count_network() probably returns a number and not an array.The arguments in array_merge(arg1, arg2) need to be arrays - like it says in the error messages Quote Link to comment Share on other sites More sharing options...
lordphate Posted August 18, 2006 Author Share Posted August 18, 2006 function count_network($m_id,$deg,$mod) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.