bugfix: show warning only when pmadb is unavailable

This commit is contained in:
Crack
2010-07-10 21:51:54 +02:00
parent e6b551dc71
commit 956315e0b2

View File

@@ -75,9 +75,12 @@ $msg = PMA_Message::notice('Debug: ' . $arr2);
$msg->display();
// warn about using session storage for settings
$msg = __('Your preferences will be saved only for current session. Storing them permanently requires %spmadb%s.');
$msg = PMA_sanitize(sprintf($msg, '[a@http://wiki.phpmyadmin.net/pma/pmadb@_blank]', '[/a]'));
PMA_Message::notice($msg)->display();
$cfgRelation = PMA_getRelationsParam();
if (!$cfgRelation['userconfigwork']) {
$msg = __('Your preferences will be saved only for current session. Storing them permanently requires %spmadb%s.');
$msg = PMA_sanitize(sprintf($msg, '[a@http://wiki.phpmyadmin.net/pma/pmadb@_blank]', '[/a]'));
PMA_Message::notice($msg)->display();
}
if (isset($error) && $error) {
if (!$error instanceof PMA_Message) {