Ignore:
Timestamp:
2007/01/25 21:55:39 (16 years ago)
Author:
naka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/include/page_layout.inc

    r17 r34  
    145145function lfGetNavi($arrNavi, $target_id){ 
    146146    $arrRet = array(); 
    147      
    148     foreach($arrNavi as $key => $val){ 
    149         // »ØÄꤵ¤ì¤¿²Õ½ê¤ÈƱ¤¸¥Ç¡¼¥¿¤À¤±¤ò¼èÆÀ¤¹¤ë 
    150         if ($target_id == $val['target_id']){ 
    151             if ($val['php_path'] != '') { 
    152                 $arrNavi[$key]['php_path'] = HTML_PATH . $val['php_path']; 
    153                 $arrNavi[$key]['include'] = "<!--{include file='".$val['php_path']."'}-->"; 
    154             }else{ 
    155                 $arrNavi[$key]['tpl_path'] = USER_PATH . $val['tpl_path']; 
    156                 $arrNavi[$key]['include'] = "<!--{include file='". USER_PATH . $val['tpl_path'] ."'}-->"; 
     147    if(is_array($arrNavi)) { 
     148        foreach($arrNavi as $key => $val){ 
     149            // »ØÄꤵ¤ì¤¿²Õ½ê¤ÈƱ¤¸¥Ç¡¼¥¿¤À¤±¤ò¼èÆÀ¤¹¤ë 
     150            if ($target_id == $val['target_id']){ 
     151                if ($val['php_path'] != '') { 
     152                    $arrNavi[$key]['php_path'] = HTML_PATH . $val['php_path']; 
     153                    $arrNavi[$key]['include'] = "<!--{include file='".$val['php_path']."'}-->"; 
     154                }else{ 
     155                    $arrNavi[$key]['tpl_path'] = USER_PATH . $val['tpl_path']; 
     156                    $arrNavi[$key]['include'] = "<!--{include file='". USER_PATH . $val['tpl_path'] ."'}-->"; 
     157                } 
     158                 
     159                $arrRet[] = $arrNavi[$key]; 
    157160            } 
    158              
    159             $arrRet[] = $arrNavi[$key]; 
    160161        } 
    161162    } 
Note: See TracChangeset for help on using the changeset viewer.