- Timestamp:
- 2007/03/29 12:31:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/lib/slib.php
r11975 r12007 527 527 function sfIsInt($value) { 528 528 if($value != "" && strlen($value) <= INT_LEN && is_numeric($value)) { 529 return true; 530 } 531 return false; 532 } 533 534 // INT·¿¤ÎÀ°¿ô¥Á¥§¥Ã¥¯ 535 function sfIsRealInt($value) { 536 if($value != "" && strlen($value) <= INT_LEN && is_Int($value)) { 529 537 return true; 530 538 } … … 1928 1936 if(!$g_category_on) { 1929 1937 $g_category_on = true; 1930 if(sfIs Int($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) {1938 if(sfIsRealInt($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) { 1931 1939 $g_category_id = $category_id; 1932 } else if (sfIs Int($product_id) && sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) {1940 } else if (sfIsRealInt($product_id) && sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) { 1933 1941 $objQuery = new SC_Query(); 1934 1942 $where = "product_id = ?";
Note: See TracChangeset
for help on using the changeset viewer.