bug #1501891, undefined function PMA_isSuperuser

This commit is contained in:
Marc Delisle
2006-06-08 16:44:35 +00:00
parent 78cb7853cb
commit 2c4dac6d05
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
2006-06-08 Marc Delisle <lem9@users.sourceforge.net>
* libraries/header.inc.php: bug #1501891, undefined PMA_isSuperuser() when
the default server is 0
2006-06-06 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: various fixes, thanks to Cedric Corazza

View File

@@ -50,7 +50,8 @@ if (empty($GLOBALS['is_header_sent'])) {
(!empty($GLOBALS['cfg']['Server']['host']) ? $GLOBALS['cfg']['TitleServer'] :
$GLOBALS['cfg']['TitleDefault']))
);
$is_superuser = PMA_isSuperuser();
// here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0;
$is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser();
?>
<script type="text/javascript" language="javascript">
<!--