only show the Cookies message if we detect that cookies are disabled

This commit is contained in:
Marc Delisle
2006-06-02 12:39:53 +00:00
parent 840a5b3d56
commit 6ed8175b45
2 changed files with 9 additions and 2 deletions

View File

@@ -212,9 +212,12 @@ echo sprintf( $GLOBALS['strWelcome'],
</fieldset>
</form>
<div class="notice"><?php echo $GLOBALS['strCookiesRequired']; ?></div>
<?php
// show the "Cookies required" message only if cookies are disabled
// (we previously tried to set some cookies)
if (empty($_COOKIE)) {
echo '<div class="notice">' . $GLOBALS['strCookiesRequired'] . '</div>' . "\n";
}
if ( ! empty( $GLOBALS['PMA_errors'] ) && is_array( $GLOBALS['PMA_errors'] ) ) {
foreach ( $GLOBALS['PMA_errors'] as $error ) {
echo '<div class="error">' . $error . '</div>' . "\n";