Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

RMA Module Issue


Wizbits

Recommended Posts

Help please. I get the following error

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in catalog/includes/functions/general.php on line 42

 

My code looks like this

 

function tep_output_string($string, $translate = false, $protected = false) {

if ($protected == true) {

return htmlspecialchars($string); <--(LINE 42)

} else {

if ($translate == false) {

return tep_parse_input_field_data($string, array('"' => '"'));

} else {

return tep_parse_input_field_data($string, $translate);

}

}

}

 

Any suggestions please

 

Thanks

Link to comment
Share on other sites

  • 7 months later...

replace above code with following

 

function tep_output_string($string, $translate = false, $protected = false) {

if ($protected == true) {

return @htmlspecialchars($string); <--(LINE 42)

} else {

if ($translate == false) {

return tep_parse_input_field_data($string, array('"' => '"'));

} else {

return tep_parse_input_field_data($string, $translate);

}

}

}

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...