Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: in_array() [function.in-array]: Wrong datatype for second argument in


Guest

Recommended Posts

I have the fallowing issues

Warning: in_array() [function.in-array]: Wrong datatype for second argument in public_html/seret/admin25xrt/edit_orders.php on line 441

 

Warning: in_array() [function.in-array]: Wrong datatype for second argument in public_html/seret/admin25xrt/edit_orders.php on line 441

 

Warning: Cannot modify header information - headers already sent by (output started at html/seret/admin25xrt/edit_orders.php on line 441 in html/seret/admin25xrt/includes/functions/general_.php on line 22

 

according to this warnings the file says:

 

	    //save ot_skippy from certain annihilation
		 if ( (!in_array($ot_class, $written_ot_totals_array)) && (!in_array($ot_title, $written_ot_titles_array)) && (tep_not_null($ot_value)) && (tep_not_null($ot_title)) && ($ot_class != 'ot_tax') && ($ot_class != 'ot_loworderfee') ) { //7
		//this is supposed to catch the oddball components that don't show up in $order_totals

 

 

i tried to fix it canging to this:

               //save ot_skippy from certain annihilation

if ( (!in_array((array)$ot_class, (array)$written_ot_totals_array)) && (!in_array((array)$ot_title, (array)$written_ot_titles_array)) && (tep_not_null($ot_value)) && (tep_not_null($ot_title)) && ($ot_class != 'ot_tax') && ($ot_class != 'ot_loworderfee') ) { //7

       //this is supposed to catch the oddball components that don't show up in $order_totals

 

but no luck... how can i make it work

 

thanks

Link to comment
Share on other sites

It says the second instance of the array...

 

Warning: in_array() [function.in-array]: Wrong datatype for second argument

 

Place this:

 

//save ot_skippy from certain annihilation

if ( (!in_array($ot_class, (array)$written_ot_totals_array)) && (!in_array($ot_title, (array)$written_ot_titles_array)) && (tep_not_null($ot_value)) && (tep_not_null($ot_title)) && ($ot_class != 'ot_tax') && ($ot_class != 'ot_loworderfee') ) { //7

//this is supposed to catch the oddball components that don't show up in $order_totals

 

works

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...