Skip to content

Commit

Permalink
Fix tyop
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed Aug 1, 2012
1 parent ae8c795 commit 6b908e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/includes/functions/banner.php
Expand Up @@ -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>';
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6b908e3

Please sign in to comment.