Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oopsie

Pioneers
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Stu

oopsie's Achievements

  1. Hi, If you're getting this error : Warning: reset() [function.reset]: Passed variable is not an array or object in \admin\quick_stockupdate.php on line 205 Warning: Variable passed to each() is not an array or object in admin\quick_stockupdate.php on line 206 The reason is you have no manufacturers on your site set up. To get around this problem, change this code at line 205 reset($manufacturers_list); while (list($key, $value) = each ($manufacturers_list)) { if($default_id==$key){ $result .= '<option value="' . $key . '" selected="selected">' . $value . '</option>'; } else { $result .= '<option value="' . $key . '">' . $value . '</option>'; } } To this if (sizeof($manufacturers_list) > 0) { reset($manufacturers_list); while (list($key, $value) = each ($manufacturers_list)) { if($default_id==$key){ $result .= '<option value="' . $key . '" selected="selected">' . $value . '</option>'; } else { $result .= '<option value="' . $key . '">' . $value . '</option>'; } } } I hope this helps, it worked on mine :D
×
×
  • Create New...