[Fusionforge-commits] FusionForge branch Branch_5_2 updated. 17ce9dfbe72d5a59beb6d8535e3bc5d142e508fe
Olivier Berger
olberger at fusionforge.org
Tue Aug 20 15:06:06 CEST 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, Branch_5_2 has been updated
via 17ce9dfbe72d5a59beb6d8535e3bc5d142e508fe (commit)
from 63e4148ec6d26ff9b5c8c7906d1ddd9a52df215b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 17ce9dfbe72d5a59beb6d8535e3bc5d142e508fe
Author: Olivier Berger <olivier.berger at telecom-sudparis.eu>
Date: Tue Aug 20 15:04:04 2013 +0200
Avoid 'Undefined offset' notices if no tooltip message for a plugin
diff --git a/src/www/themes/funky/Theme.class.php b/src/www/themes/funky/Theme.class.php
index 83885a1..d9e1ac1 100644
--- a/src/www/themes/funky/Theme.class.php
+++ b/src/www/themes/funky/Theme.class.php
@@ -275,8 +275,13 @@ class Theme extends Layout {
// middle part
$return .= '<td class="tg-middle" style="width:'.$tabwidth.'%;"><a ';
$return .= 'id="'.md5($TABS_DIRS[$i]).'" ';
- if ($use_tooltips)
- $return .= 'class="tabtitle" title="'.$TABS_TOOLTIPS[$i].'" ';
+ if ($use_tooltips) {
+ $return .= 'class="tabtitle" ';
+ if (isset($TABS_TOOLTIPS[$i])) {
+ $return .= 'title="'.$TABS_TOOLTIPS[$i].'" ';
+ }
+ }
+
$return .= 'href="'.$TABS_DIRS[$i].'">' . "\n";
$return .= '<span';
diff --git a/src/www/themes/gforge/Theme.class.php b/src/www/themes/gforge/Theme.class.php
index 0fb3b67..4a8e9fc 100644
--- a/src/www/themes/gforge/Theme.class.php
+++ b/src/www/themes/gforge/Theme.class.php
@@ -302,8 +302,9 @@ class Theme extends Layout {
}
$return .= '>' . "\n";
$return .= '<a ';
- if ($use_tooltips)
+ if ($use_tooltips && isset($TABS_TOOLTIPS[$i])) {
$return .= ' title="'.$TABS_TOOLTIPS[$i].'"';
+ }
$return .= ' href="'.$TABS_DIRS[$i].'">'.$TABS_TITLES[$i].'</a>' . "\n";
$return .= '</div>';
-----------------------------------------------------------------------
Summary of changes:
src/www/themes/funky/Theme.class.php | 9 +++++++--
src/www/themes/gforge/Theme.class.php | 3 ++-
2 files changed, 9 insertions(+), 3 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list