mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
fixes a few warnings.
This commit is contained in:
parent
3f0fc741fe
commit
da47c29c24
@ -351,6 +351,8 @@
|
|||||||
$a[] = $firstname;
|
$a[] = $firstname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($a))
|
||||||
|
{
|
||||||
switch(count($a))
|
switch(count($a))
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
@ -364,6 +366,11 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $lid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@function grab_owner_name
|
@function grab_owner_name
|
||||||
|
@ -574,7 +574,8 @@
|
|||||||
// Its up to the app to pass this value. (jengo)
|
// Its up to the app to pass this value. (jengo)
|
||||||
// Putting it into the app requires a massive number of updates in email app.
|
// Putting it into the app requires a massive number of updates in email app.
|
||||||
// Until that happens this needs to stay here (seek3r)
|
// 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';
|
$url .= '&newsmode=on';
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,8 @@
|
|||||||
$classpart = explode (".", $classname);
|
$classpart = explode (".", $classname);
|
||||||
$appname = $classpart[0];
|
$appname = $classpart[0];
|
||||||
$classname = $classpart[1];
|
$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;
|
$phpgw_info["flags"]["included_classes"][$classname] = True;
|
||||||
include(PHPGW_INCLUDE_ROOT."/".$appname."/inc/class.".$classname.".inc.php");
|
include(PHPGW_INCLUDE_ROOT."/".$appname."/inc/class.".$classname.".inc.php");
|
||||||
}
|
}
|
||||||
@ -424,7 +425,8 @@
|
|||||||
/*************************************************************************\
|
/*************************************************************************\
|
||||||
* Load the header unless the developer turns it off *
|
* 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();
|
$phpgw->common->phpgw_header();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -435,7 +437,10 @@
|
|||||||
if (! preg_match ("/phpgwapi/i", PHPGW_APP_INC) && file_exists(PHPGW_APP_INC."/functions.inc.php")){
|
if (! preg_match ("/phpgwapi/i", PHPGW_APP_INC) && file_exists(PHPGW_APP_INC."/functions.inc.php")){
|
||||||
include(PHPGW_APP_INC . "/functions.inc.php");
|
include(PHPGW_APP_INC . "/functions.inc.php");
|
||||||
}
|
}
|
||||||
if (!$phpgw_info["flags"]["noheader"] && ! $phpgw_info["flags"]["noappheader"] &&
|
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")) {
|
file_exists(PHPGW_APP_INC . "/header.inc.php")) {
|
||||||
include(PHPGW_APP_INC . "/header.inc.php");
|
include(PHPGW_APP_INC . "/header.inc.php");
|
||||||
}
|
}
|
||||||
|
@ -25,11 +25,6 @@
|
|||||||
$tpl->set_var('img_root_roll',PHPGW_IMAGES_DIR . '/rollover');
|
$tpl->set_var('img_root_roll',PHPGW_IMAGES_DIR . '/rollover');
|
||||||
$tpl->set_var('table_bg_color',$phpgw_info['theme']['navbar_bg']);
|
$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 '<pre>'; print_r($phpgw_info['navbar']); echo '</pre>';
|
# echo '<pre>'; print_r($phpgw_info['navbar']); echo '</pre>';
|
||||||
while ($app = each($phpgw_info['navbar']))
|
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';
|
$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'"><img src="images/admin.gif" border="0" name="two"
|
// onMouseOver="two.src='rollover/admin_over.gif'" onMouseOut="two.src='images/admin.gif'"><img src="images/admin.gif" border="0" name="two"
|
||||||
$applications .= '<tr><td><a href="' . $app[1]['url'] . '"' . $target . ' onMouseOver="'
|
$applications .= '<tr><td><a href="' . $app[1]['url'] . '"';
|
||||||
. $app[0] . '.src=\'' . $img_src_over . '\'" onMouseOut="' . $app[0] . '.src=\'' . $img_src_out . '\'">';
|
if (isset($phpgw_info['flags']['navbar_target']) &&
|
||||||
|
$phpgw_info['flags']['navbar_target'])
|
||||||
|
{
|
||||||
|
$applications .= ' target="' . $phpgw_info['flags']['navbar_target'] . '"';
|
||||||
|
}
|
||||||
|
|
||||||
|
$applications .= 'onMouseOver="' . $app[0] . '.src=\'' . $img_src_over . '\'" onMouseOut="' . $app[0] . '.src=\'' . $img_src_out . '\'">';
|
||||||
$applications .= $title . '</a></td></tr>';
|
$applications .= $title . '</a></td></tr>';
|
||||||
$applications .= "\n";
|
$applications .= "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user