fixed NOTICE

This commit is contained in:
Sebastian Mendel
2008-12-10 10:05:41 +00:00
parent 8a727a70a0
commit dfb511903c

View File

@@ -454,6 +454,9 @@ function PMA_showHint($message, $bbcode = false, $type = 'notice')
}
if (! isset($GLOBALS['footnotes'][$key])) {
if (empty($GLOBALS['footnotes']) || ! is_array($GLOBALS['footnotes'])) {
$GLOBALS['footnotes'] = array();
}
$nr = count($GLOBALS['footnotes']) + 1;
// this is the first instance of this message
$instance = 1;