Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem w/ object_info.php?


CivicRacingGirl7

Recommended Posts

Posted

I receive the following error when selecting the edit option under the customers in the admin panel:

 

Warning: reset(): Passed variable is not an array or object in /home/import-/public_html/shop/catalog/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /home/import-/public_html/shop/catalog/admin/includes/classes/object_info.php on line 18

 

 

My object_info.php looks like:

<?php
/*
?$Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $

?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 2003 osCommerce

?Released under the GNU General Public License
*/

?class objectInfo {

// class constructor
? ?function objectInfo($object_array) {
? ? reset($object_array);
? ? ?while (list($key, $value) = each($object_array)) {
? ? ? ?$this->$key = tep_db_prepare_input($value);
? ? ?}
? ?}
?}
?>

Archived

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

×
×
  • Create New...