diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index e09ef217dd..89607f4f2f 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -351,17 +351,24 @@ $a[] = $firstname; } - switch(count($a)) + if(isset($a)) { - case 0: - return $lid; - break; - case 1: - return '<' . $lid . '> ' . $a[0]; - break; - case 2: - return '<' . $lid . '> ' . implode(', ',$a); - break; + switch(count($a)) + { + case 0: + return $lid; + break; + case 1: + return '<' . $lid . '> ' . $a[0]; + break; + case 2: + return '<' . $lid . '> ' . implode(', ',$a); + break; + } + } + else + { + return $lid; } } diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index fcfd76b394..f972059e99 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -574,7 +574,8 @@ // Its up to the app to pass this value. (jengo) // Putting it into the app requires a massive number of updates in email app. // Until that happens this needs to stay here (seek3r) - if ($phpgw_info['flags']['newsmode']) + if (isset($phpgw_info['flags']['newsmode']) && + $phpgw_info['flags']['newsmode']) { $url .= '&newsmode=on'; } diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 10408c3976..69ba911cfe 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -46,7 +46,8 @@ $classpart = explode (".", $classname); $appname = $classpart[0]; $classname = $classpart[1]; - if (!$phpgw_info["flags"]["included_classes"][$classname]){ + if (!isset($phpgw_info['flags']['included_classes'][$classname]) + || !$phpgw_info["flags"]["included_classes"][$classname]){ $phpgw_info["flags"]["included_classes"][$classname] = True; include(PHPGW_INCLUDE_ROOT."/".$appname."/inc/class.".$classname.".inc.php"); } @@ -424,7 +425,8 @@ /*************************************************************************\ * Load the header unless the developer turns it off * \*************************************************************************/ - if (! $phpgw_info["flags"]["noheader"]) { + if (!isset($phpgw_info['flags']['noheader']) || + !$phpgw_info['flags']['noheader']) { $phpgw->common->phpgw_header(); } @@ -435,8 +437,11 @@ if (! preg_match ("/phpgwapi/i", PHPGW_APP_INC) && file_exists(PHPGW_APP_INC."/functions.inc.php")){ include(PHPGW_APP_INC . "/functions.inc.php"); } - if (!$phpgw_info["flags"]["noheader"] && ! $phpgw_info["flags"]["noappheader"] && - file_exists(PHPGW_APP_INC . "/header.inc.php")) { + if ((!isset($phpgw_info['flags']['noheader']) || + !$phpgw_info["flags"]["noheader"]) && + (!isset($phpgw_info['flags']['noappheader']) || + !$phpgw_info["flags"]["noappheader"]) && + file_exists(PHPGW_APP_INC . "/header.inc.php")) { include(PHPGW_APP_INC . "/header.inc.php"); } } diff --git a/phpgwapi/templates/idsociety/navbar.inc.php b/phpgwapi/templates/idsociety/navbar.inc.php index 398cbb8f95..2a51477ff4 100644 --- a/phpgwapi/templates/idsociety/navbar.inc.php +++ b/phpgwapi/templates/idsociety/navbar.inc.php @@ -25,11 +25,6 @@ $tpl->set_var('img_root_roll',PHPGW_IMAGES_DIR . '/rollover'); $tpl->set_var('table_bg_color',$phpgw_info['theme']['navbar_bg']); - if ($phpgw_info['flags']['navbar_target']) - { - $target = ' target="' . $phpgw_info['flags']['navbar_target'] . '"'; - } - # echo '
'; print_r($phpgw_info['navbar']); echo ''; while ($app = each($phpgw_info['navbar'])) { @@ -42,9 +37,14 @@ $img_src_out = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar.gif'; // onMouseOver="two.src='rollover/admin_over.gif'" onMouseOut="two.src='images/admin.gif'">'; - + $applications .= '