fixed 'not defined function'

This commit is contained in:
Sebastian Mendel
2005-11-02 07:38:57 +00:00
parent 522c09e27b
commit c097def342
2 changed files with 7 additions and 9 deletions

View File

@@ -6,7 +6,9 @@ $Id$
$Source$ $Source$
2005-11-01 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2005-11-01 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/dbg/setup.php: display error in error box * libraries/dbg/setup.php:
- display error in error box
- fixed 'not defined function'
2005-11-01 Marc Delisle <lem9@users.sourceforge.net> 2005-11-01 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: undefined variable when changing a password * server_privileges.php: undefined variable when changing a password

View File

@@ -6,18 +6,14 @@ if (isset($GLOBALS['cfg']['DBG']['enable']) && $GLOBALS['cfg']['DBG']['enable'])
/** /**
* Loads the DBG extension if needed * Loads the DBG extension if needed
*/ */
if (!@extension_loaded('dbg')) { if ( ! @extension_loaded('dbg') && ! PMA_dl('dbg') ) {
PMA_dl('dbg');
}
if (!@extension_loaded('dbg')) {
echo '<div class="warning">' echo '<div class="warning">'
.sprintf($strCantLoad, 'DBG') .sprintf($strCantLoad, 'DBG')
.' <a href="./Documentation.html#faqdbg" target="documentation">' .' <a href="./Documentation.html#faqdbg" target="documentation">'
.$GLOBALS['strDocu'] . '</a>' .$GLOBALS['strDocu'] . '</a>'
.'</div>'; .'</div>';
require_once('./footer.inc.php'); } else {
$GLOBALS['DBG'] = true;
} }
$GLOBALS['DBG'] = true;
} }
?>
?>