Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: reset() [function.reset]: Passed variable is not an array or object in


sampathkumara

Recommended Posts

Hi,

 

I have migrate my osc site to new server so when i click admin->customer and then click on edit customer i am getting below error, i think this due to php version problem.

 

So please can anyone help me how to solve this problem.

 

 

My error is

 

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/content/..../admin/includes/classes/object_info.php on line 17

 

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

Online Merchant

 

 

 

below is coding of the object_info.php

 

 

 

<?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 © 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);

}

}

}

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...