Index: branches/dev/data/lib/slib.php
===================================================================
--- branches/dev/data/lib/slib.php	(revision 12015)
+++ branches/dev/data/lib/slib.php	(revision 12016)
@@ -527,13 +527,4 @@
 function sfIsInt($value) {
 	if($value != "" && strlen($value) <= INT_LEN && is_numeric($value)) {
-		return true;
-	}
-	return false;
-}
-
-// INT·¿¤ÎÀ°¿ô¥Á¥§¥Ã¥¯
-function sfIsRealInt($value) {
-	$int = (int) $value;
-	if($int!= "" && strlen($int) <= INT_LEN && is_int($int)) {
 		return true;
 	}
@@ -1937,7 +1928,9 @@
 	if(!$g_category_on)	{
 		$g_category_on = true;
-		if(sfIsRealInt($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) {
+		$category_id = (int) $category_id;
+		$product_id = (int) $product_id;
+		if(sfIsInt($category_id) && sfIsRecord("dtb_category","category_id", $category_id)) {
 			$g_category_id = $category_id;
-		} else if (sfIsRealInt($product_id) && sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) {
+		} else if (sfIsInt($product_id) && sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) {
 			$objQuery = new SC_Query();
 			$where = "product_id = ?";
