Permalink
Browse files

Fix tyop

  • Loading branch information...
1 parent ae8c795 commit 6b908e3c7b4928ab1d40183a20a2dc19b8c5cd30 @haraldpdl haraldpdl committed Aug 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 catalog/includes/functions/banner.php
View
4 catalog/includes/functions/banner.php
@@ -61,7 +61,7 @@ function tep_display_banner($action, $identifier) {
$banners_query = tep_db_query("select count(*) as count from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . tep_db_input($identifier) . "'");
$banners = tep_db_fetch_array($banners_query);
if ($banners['count'] > 0) {
- $banner = tep_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . tep_db_intput($identifier) . "'");
+ $banner = tep_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . tep_db_input($identifier) . "'");
} else {
return '<strong>TEP ERROR! (tep_display_banner(' . $action . ', ' . $identifier . ') -> No banners with group \'' . $identifier . '\' found!</strong>';
}
@@ -95,7 +95,7 @@ function tep_display_banner($action, $identifier) {
// Check to see if a banner exists
function tep_banner_exists($action, $identifier) {
if ($action == 'dynamic') {
- return tep_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . tep_db_intput($identifier) . "'");
+ return tep_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . tep_db_input($identifier) . "'");
} elseif ($action == 'static') {
$banner_query = tep_db_query("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_id = '" . (int)$identifier . "'");
return tep_db_fetch_array($banner_query);

0 comments on commit 6b908e3

Please sign in to comment.