Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

warning rest error


Guest

Recommended Posts

I was just adding products in my store and now in my admin section under categories/products im getting this error...

 

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

 

Below is the code from my object info if this helps..

<?php
/*
 $Id: object_info.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 class objectInfo {

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

Link to comment
Share on other sites

I was just adding products in my store and now in my admin section under categories/products im getting this error...

 

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

 

Below is the code from my object info if this helps..

<?php
/*
 $Id: object_info.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 class objectInfo {

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

 

 

nevermind...figured it out

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...