Changeset 12016
- Timestamp:
- 2007/03/29 12:50:42 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/lib/slib.php
r12015 r12016 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 $int = (int) $value;537 if($int!= "" && strlen($int) <= INT_LEN && is_int($int)) {538 529 return true; 539 530 } … … 1937 1928 if(!$g_category_on) { 1938 1929 $g_category_on = true; 1939 if(sfIsRealInt($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) { 1930 $category_id = (int) $category_id; 1931 $product_id = (int) $product_id; 1932 if(sfIsInt($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) { 1940 1933 $g_category_id = $category_id; 1941 } else if (sfIs RealInt($product_id) && sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) {1934 } else if (sfIsInt($product_id) && sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) { 1942 1935 $objQuery = new SC_Query(); 1943 1936 $where = "product_id = ?";
Note: See TracChangeset
for help on using the changeset viewer.