Admin: Array Bug Fix

ARRAY BUG:

This bug has been around for a long time and this is an easy fix. The bug occurs when you create a product and do not specify an image. The word "array" is places in the database, and broken images will show up in your catalog, even though you didn't specify any image.
This corrects the problem.
 
Locate file:
/catalog/admin/categories.php
On approximately line 193 you will see this code ...
$products_date_available = (date('Y-m-d') <
$products_date_available) ? $products_date_available : 'null';
          $sql_data_array = array('products_quantity' =>
tep_db_prepare_input($HTTP_POST_VARS['products_quantity']),
 
change to:
$products_date_available = (date('Y-m-d') <
$products_date_available) ? $products_date_available : 'null';
          if
(tep_db_prepare_input($HTTP_POST_VARS['products_image'])=='Array')
$HTTP_POST_VARS['products_image']='';
          $sql_data_array = array('products_quantity' =>
tep_db_prepare_input($HTTP_POST_VARS['products_quantity']),