mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 09:04:02 +02:00
Notices: Declare Db::$info at least in MySQL
This commit is contained in:
@@ -66,6 +66,7 @@ if (!defined('Adminer\DRIVER')) {
|
|||||||
$flavor = '', ///< @var string different vendor with the same API, e.g. MariaDB, usually stays empty
|
$flavor = '', ///< @var string different vendor with the same API, e.g. MariaDB, usually stays empty
|
||||||
$server_info, ///< @var string server version
|
$server_info, ///< @var string server version
|
||||||
$affected_rows, ///< @var int number of affected rows
|
$affected_rows, ///< @var int number of affected rows
|
||||||
|
$info, ///< @var string see https://php.net/mysql_info
|
||||||
$errno, ///< @var int last error code
|
$errno, ///< @var int last error code
|
||||||
$error ///< @var string last error message
|
$error ///< @var string last error message
|
||||||
;
|
;
|
||||||
|
@@ -181,7 +181,7 @@ if (!$error && $_POST) {
|
|||||||
stop_session();
|
stop_session();
|
||||||
}
|
}
|
||||||
if (!$_POST["only_errors"]) {
|
if (!$_POST["only_errors"]) {
|
||||||
echo "<p class='message' title='" . h($connection->info) . "'>" . lang('Query executed OK, %d row(s) affected.', $affected) . "$time\n";
|
echo "<p class='message' title='" . h(isset($connection->info) ? $connection->info : "") . "'>" . lang('Query executed OK, %d row(s) affected.', $affected) . "$time\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo ($warnings ? "<div id='$warnings_id' class='hidden'>\n$warnings</div>\n" : "");
|
echo ($warnings ? "<div id='$warnings_id' class='hidden'>\n$warnings</div>\n" : "");
|
||||||
|
Reference in New Issue
Block a user