Merge branch 'QA_3_3' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin into QA_3_3
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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'];
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user