Merge branch 'QA_3_3'

Conflicts:
	Documentation.html
	README
	libraries/Config.class.php
	translators.html
This commit is contained in:
Michal Čihař
2010-08-23 17:10:04 +02:00
4 changed files with 14 additions and 1 deletions

View File

@@ -110,6 +110,8 @@ $Id$
- [relations] Dropped WYSIWYG-PDF configuration variable.
- rfe #806035, #686260 [relations] Export relations to Dia, SVG and others
3.3.7.0 (not yet released)
3.3.6.0 (not yet released)
- bug #3033063 [core] Navi gets wrong db name
- bug #3031705 [core] Fix generating condition for real numbers by comparing

View File

@@ -318,7 +318,7 @@ class PMA_Error extends PMA_Message
if (in_array($function, $include_functions)) {
echo PMA_Error::relPath($arg);
} elseif (is_scalar($arg)) {
echo gettype($arg) . ' ' . $arg;
echo gettype($arg) . ' ' . htmlspecialchars($arg);
} else {
echo gettype($arg);
}

View File

@@ -317,6 +317,12 @@ function PMA_DBI_get_client_info()
function PMA_DBI_getError($link = null)
{
$GLOBALS['errno'] = 0;
/* Treat false same as null because of controllink */
if ($link === false) {
$link = null;
}
if (null === $link && isset($GLOBALS['userlink'])) {
$link =& $GLOBALS['userlink'];

View File

@@ -374,6 +374,11 @@ function PMA_DBI_getError($link = null)
{
$GLOBALS['errno'] = 0;
/* Treat false same as null because of controllink */
if ($link === false) {
$link = null;
}
if (null === $link && isset($GLOBALS['userlink'])) {
$link =& $GLOBALS['userlink'];
// Do not stop now. We still can get the error code