Jump to content

Code String Cleanup Help


monkeybidz

Recommended Posts

I keep getting an error message on my site that points to this line of code. It is from OSCommerece. Can someone help me clean this line up a bit. Just does not look right to me. I played with it a bit and I get some good results, just not 100Y%.

 

eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/272206-code-string-cleanup-help/
Share on other sites

If you do a var_dump () on the three variables for me, I can rewrite it to something proper for you.

 

eval () is evil and should never be used, and using it in the above manner is just bad on all levels. Unfortunately, the OSCommerce code is full of bad stuff. :(

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.