Posted 10 June 2008, 20:24
I have seen reference to this in a few different threads now - but I cannot seem to find where anyone has actually posted what the code would look like with the is_array check.
Currently - this bit of code is giving me problems:
class objectInfo {
// class constructor
function objectInfo($object_array) {
if (isset(($object_array)){
while (list($key, $value) = each($object_array)) {
$this->$key = tep_db_prepare_input($value);
}
}
}
}
Does anyone know how to add the is_array statement to this? I'm sure it's gotta be simple, but it is eluding me
bruyndoncx, on Jul 26 2007, 06:22 PM, said:
the reset error can be avoided by adding an is_array check before calling it.
it is a common problem on php5 vs php4, and a typical error you get when upgrading environments.
Sorry i can't help you on the ebay front, but I'm eagerly watching this thread

~Tracy
Currently using: STS v4.5.8 with Header Tags Controller v2.6.3, Master Products v1.2, Separate Pricing Per Customer v 4.1.5, Hide Products and Categories from Customer Groups for SPPC , InfoBox Customizer, Discount Coupon Codes and Exclude Customer Groups for DCC, All Products, Tell Friend About Site too, Scrolling Specials Box, Ultimate SEO URL's, MS2-2.2 SiteMap, Product Sort, Customer Testimonials, Embed Links w/SID in Description, Minimum Order Amount, Free Shipping w/Minimum Amount, Cross Sell for MS2, Super Contact Us Enhancement + antirobot, Anti Robot Registration Validation, Agree2Terms, Customer Registration Report, Sales Report 2, Edit Auto Emails in Admin, Ad Tracker, Visitor Web Stats, Supertracker, Product Listing, Sales Tracker, How Did You Hear About Us, Order Editor, About Us, Country State Selector, Credit Card Number Encryption, Remove Credit Card Numbers, Links Manager II and Google Analytics