Bugfix für Applikationen mit mehreren Shortcuts

This commit is contained in:
Andreas Österreicher
2010-11-10 14:04:35 +00:00
parent 81f2e37913
commit 992e9869b2
+7
View File
@@ -123,6 +123,7 @@ require_once('../../../config/cis.config.inc.php');
// Applikation und Link lesen // Applikation und Link lesen
$cAPPName=trim((isset($xml['APP'][$i]['NAME'])?$xml['APP'][$i]['NAME']:'')); $cAPPName=trim((isset($xml['APP'][$i]['NAME'])?$xml['APP'][$i]['NAME']:''));
$cAPPLink=trim((isset($xml['APP'][$i]['OSD'])?$xml['APP'][$i]['OSD']:'')); $cAPPLink=trim((isset($xml['APP'][$i]['OSD'])?$xml['APP'][$i]['OSD']:''));
//echo '<hr>'.$cAPPName.' - '.$cAPPLink.'<br>';
if (empty($cAPPName) || empty($cAPPLink)) if (empty($cAPPName) || empty($cAPPLink))
{ {
@@ -137,10 +138,15 @@ require_once('../../../config/cis.config.inc.php');
// SHORTCUTLIST / SHORTCUT lesen // SHORTCUTLIST / SHORTCUT lesen
$cAPPLocation=''; $cAPPLocation='';
$arrAPPShortcutlist=(array)$xml['APP'][$i]; $arrAPPShortcutlist=(array)$xml['APP'][$i];
if (isset($arrAPPShortcutlist['SHORTCUTLIST']) && is_array($arrAPPShortcutlist) ) if (isset($arrAPPShortcutlist['SHORTCUTLIST']) && is_array($arrAPPShortcutlist) )
{ {
// SHORTCUT lesen // SHORTCUT lesen
$arrAPPShortcut=(array)$arrAPPShortcutlist['SHORTCUTLIST']; $arrAPPShortcut=(array)$arrAPPShortcutlist['SHORTCUTLIST'];
if(isset($arrAPPShortcut['SHORTCUT']) && !isset($arrAPPShortcut['SHORTCUT']['LOCATION']))
$arrAPPShortcut['SHORTCUT']=$arrAPPShortcut['SHORTCUT'][0];
//var_dump($arrAPPShortcut);
if (isset($arrAPPShortcut['SHORTCUT']) && isset($arrAPPShortcut['SHORTCUT']['LOCATION']) ) if (isset($arrAPPShortcut['SHORTCUT']) && isset($arrAPPShortcut['SHORTCUT']['LOCATION']) )
{ {
// Location - Path zur Anwendung aufsplitten fuer Menue // Location - Path zur Anwendung aufsplitten fuer Menue
@@ -167,6 +173,7 @@ require_once('../../../config/cis.config.inc.php');
$arrAPPRow['SecondLevel']=trim((isset($arrLevel[0])?$arrLevel[0]:'')); $arrAPPRow['SecondLevel']=trim((isset($arrLevel[0])?$arrLevel[0]:''));
$arrAPPRow['ThirdLevel']=trim((isset($arrLevel[1])?$arrLevel[1]:'')); $arrAPPRow['ThirdLevel']=trim((isset($arrLevel[1])?$arrLevel[1]:''));
$arrAPPRow['FourthLevel']=trim((isset($arrLevel[2])?$arrLevel[2]:'')); $arrAPPRow['FourthLevel']=trim((isset($arrLevel[2])?$arrLevel[2]:''));
} }
} }
} }