pmaTooltip(): no return value, additional check

This commit is contained in:
Sebastian Mendel
2005-11-14 10:59:40 +00:00
parent 3dac7a6e46
commit 69b5efe426
2 changed files with 13 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2005-11-14 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* themes/*/css/theme_right.css.php, css/phpmyadmin.css.php:
bug #1342683 Wrong URL to error.ico
* libraries/tooltip.js: no return value, additional check
2005-11-13 Michal Čihař <michal@cihar.com>
* Documentation.html, config.default.php, main.php, server_links.inc.php,

View File

@@ -127,7 +127,7 @@ function moveTooltip(posX, posY) {
*
* @param string theText tooltip content
*/
function pmaTooltip(theText) {
function pmaTooltip( theText ) {
// reference to TooltipContainer
if ( null == myTooltipContainer ) {
if (ttNS4) {
@@ -137,7 +137,11 @@ function pmaTooltip(theText) {
} else if (ttDOM) {
myTooltipContainer = document.getElementById('TooltipContainer');
} else {
return false;
return;
}
if ( typeof( myTooltipContainer ) == 'undefined' ) {
return;
}
}