Ignore:
Timestamp:
2007/03/29 12:31:59 (17 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/lib/slib.php

    r11975 r12007  
    527527function sfIsInt($value) { 
    528528    if($value != "" && strlen($value) <= INT_LEN && is_numeric($value)) { 
     529        return true; 
     530    } 
     531    return false; 
     532} 
     533 
     534// INT·¿¤ÎÀ°¿ô¥Á¥§¥Ã¥¯ 
     535function sfIsRealInt($value) { 
     536    if($value != "" && strlen($value) <= INT_LEN && is_Int($value)) { 
    529537        return true; 
    530538    } 
     
    19281936    if(!$g_category_on) { 
    19291937        $g_category_on = true; 
    1930         if(sfIsInt($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) { 
     1938        if(sfIsRealInt($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) { 
    19311939            $g_category_id = $category_id; 
    1932         } else if (sfIsInt($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")) { 
    19331941            $objQuery = new SC_Query(); 
    19341942            $where = "product_id = ?"; 
Note: See TracChangeset for help on using the changeset viewer.