Index: branches/version-2_5-dev/data/class/SC_CartSession.php
===================================================================
--- branches/version-2_5-dev/data/class/SC_CartSession.php	(revision 20007)
+++ branches/version-2_5-dev/data/class/SC_CartSession.php	(revision 20038)
@@ -32,4 +32,7 @@
     /* コンストラクタ */
     function SC_CartSession($cartKey = "cart") {
+        if (!isset($_SESSION[$cartKey])) {
+            $_SESSION[$cartKey] = array();
+        }
         $this->cartSession =& $_SESSION[$cartKey];
     }
@@ -251,5 +254,5 @@
         // ページチェックを行う。
         foreach($arrExclude as $val) {
-            if(preg_match("/" . preg_quote($val) . "/", $url)) {
+            if(preg_match("|" . preg_quote($val) . "|", $url)) {
                 $exclude = true;
                 break;
Index: branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
===================================================================
--- branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php	(revision 20032)
+++ branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php	(revision 20038)
@@ -171,5 +171,5 @@
                 $category_id = $this->sfGetCategoryId($_GET['product_id'], $_GET['category_id']);
                 // ROOTカテゴリIDの取得
-                $arrRet = $this->sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $category_id);
+                $arrRet = $this->sfGetParents('dtb_category', 'parent_category_id', 'category_id', $category_id);
                 $root_id = isset($arrRet[0]) ? $arrRet[0] : "";
             } else {
@@ -488,5 +488,5 @@
         $arrRet = $objQuery->select($col, $from, $where);
 
-        $arrParentID = $this->sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $parent_category_id);
+        $arrParentID = $this->sfGetParents('dtb_category', 'parent_category_id', 'category_id', $parent_category_id);
 
         foreach($arrRet as $key => $array) {
@@ -560,5 +560,5 @@
         $arrCatTree = array();
         foreach ($arrCategory_id as $pkey => $parent_category_id) {
-            $arrParentID = $this->sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $parent_category_id);
+            $arrParentID = $this->sfGetParents('dtb_category', 'parent_category_id', 'category_id', $parent_category_id);
 
             foreach($arrParentID as $pid) {
@@ -584,5 +584,5 @@
         // 商品が属するカテゴリIDを縦に取得
         $objQuery =& SC_Query::getSingletonInstance();
-        $arrCatID = $this->sfGetParents($objQuery, "dtb_category", "parent_category_id", "category_id", $category_id);
+        $arrCatID = $this->sfGetParents("dtb_category", "parent_category_id", "category_id", $category_id);
         $ConbName = "";
 
@@ -626,5 +626,5 @@
         $objQuery =& SC_Query::getSingletonInstance();
         $arrRet = array();
-        $arrCatID = $this->sfGetParents($objQuery, "dtb_category", "parent_category_id", "category_id", $category_id);
+        $arrCatID = $this->sfGetParents("dtb_category", "parent_category_id", "category_id", $category_id);
         $arrRet['id'] = $arrCatID[0];
 
@@ -982,5 +982,5 @@
         foreach ($arrDiffCategory_id as $parent_category_id) {
             $arrTgtCategory_id[] = $parent_category_id;
-            $arrParentID = $this->sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $parent_category_id);
+            $arrParentID = $this->sfGetParents('dtb_category', 'parent_category_id', 'category_id', $parent_category_id);
             foreach($arrParentID as $pid) {
                 $arrTgtCategory_id[] = $pid;
@@ -1106,5 +1106,5 @@
      * @return array 親IDの配列
      */
-    function sfGetParents($objQuery, $table, $pid_name, $id_name, $id) {
+    function sfGetParents($table, $pid_name, $id_name, $id) {
         $arrRet = $this->sfGetParentsArray($table, $pid_name, $id_name, $id);
         // 配列の先頭1つを削除する。
Index: branches/version-2_5-dev/data/class/SC_Query.php
===================================================================
--- branches/version-2_5-dev/data/class/SC_Query.php	(revision 20037)
+++ branches/version-2_5-dev/data/class/SC_Query.php	(revision 20038)
@@ -97,5 +97,5 @@
      */
     function getSingletonInstance($dsn = "", $force_run = false, $new = false) {
-        if (is_null($this->instance)) {
+        if (!isset($this->instance) || is_null($this->instance)) {
             $this->instance =& new SC_Query($dsn, $force_run, $new);
         }
Index: branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php	(revision 19903)
+++ branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php	(revision 20038)
@@ -102,5 +102,5 @@
 
         foreach ($arrParent_category_id as $category_id) {
-            $arrParentID = $objDb->sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $category_id);
+            $arrParentID = $objDb->sfGetParents('dtb_category', 'parent_category_id', 'category_id', $category_id);
             $arrBrothersID = SC_Utils_Ex::sfGetBrothersArray($arrRet, 'parent_category_id', 'category_id', $arrParentID);
             $arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $category_id);
