Skip to content
Permalink
Browse files

Cast _get to int

  • Loading branch information...
gburton committed Feb 4, 2014
1 parent a321ba9 commit e4d90eccd7d9072ebe78da4c38fb048bfe31c902
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/admin/geo_zones.php
@@ -136,7 +136,7 @@ function update_zone(theForm) {
</tr>
<?php
$rows = 0;
$zones_query_raw = "select a.association_id, a.zone_country_id, c.countries_name, a.zone_id, a.geo_zone_id, a.last_modified, a.date_added, z.zone_name from " . TABLE_ZONES_TO_GEO_ZONES . " a left join " . TABLE_COUNTRIES . " c on a.zone_country_id = c.countries_id left join " . TABLE_ZONES . " z on a.zone_id = z.zone_id where a.geo_zone_id = " . $HTTP_GET_VARS['zID'] . " order by association_id";
$zones_query_raw = "select a.association_id, a.zone_country_id, c.countries_name, a.zone_id, a.geo_zone_id, a.last_modified, a.date_added, z.zone_name from " . TABLE_ZONES_TO_GEO_ZONES . " a left join " . TABLE_COUNTRIES . " c on a.zone_country_id = c.countries_id left join " . TABLE_ZONES . " z on a.zone_id = z.zone_id where a.geo_zone_id = " . (int)$HTTP_GET_VARS['zID'] . " order by association_id";
$zones_split = new splitPageResults($HTTP_GET_VARS['spage'], MAX_DISPLAY_SEARCH_RESULTS, $zones_query_raw, $zones_query_numrows);
$zones_query = tep_db_query($zones_query_raw);
while ($zones = tep_db_fetch_array($zones_query)) {

0 comments on commit e4d90ec

Please sign in to comment.
You can’t perform that action at this time.