Merge branch 'QA_3_3' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin into QA_3_3

This commit is contained in:
Herman van Rink
2010-08-24 15:17:11 +02:00
8 changed files with 20 additions and 7 deletions

View File

@@ -92,7 +92,7 @@ class PMA_Config
*/
function checkSystem()
{
$this->set('PMA_VERSION', '3.3.6-dev');
$this->set('PMA_VERSION', '3.3.7-dev');
/**
* @deprecated
*/

View File

@@ -319,7 +319,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

@@ -321,6 +321,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

@@ -379,6 +379,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