Permalink
Browse files

standards updates

  • Loading branch information...
1 parent 42c6c8e commit 574c887b5e8aba853ddb1badb0387ac35cbb4b2a @haraldpdl haraldpdl committed Jul 14, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 catalog/admin/manufacturers.php
@@ -40,8 +40,9 @@
$manufacturers_image = new upload('manufacturers_image');
$manufacturers_image->set_destination(DIR_FS_CATALOG_IMAGES);
+
if ($manufacturers_image->parse() && $manufacturers_image->save()) {
- tep_db_query("update " . TABLE_MANUFACTURERS . " set manufacturers_image = '" . $manufacturers_image->filename . "' where manufacturers_id = '" . (int)$manufacturers_id . "'");
+ tep_db_query("update " . TABLE_MANUFACTURERS . " set manufacturers_image = '" . tep_db_input($manufacturers_image->filename) . "' where manufacturers_id = '" . (int)$manufacturers_id . "'");
}
$languages = tep_get_languages();

0 comments on commit 574c887

Please sign in to comment.