Merge branch 'QA_4_7'
This commit is contained in:
commit
87ec560346
@ -104,10 +104,15 @@ class Error extends Message
|
||||
$this->setFile($errfile);
|
||||
$this->setLine($errline);
|
||||
|
||||
$backtrace = debug_backtrace();
|
||||
// remove last three calls:
|
||||
// debug_backtrace(), handleError() and addError()
|
||||
$backtrace = array_slice($backtrace, 3);
|
||||
// This function can be disabled in php.ini
|
||||
if (function_exists('debug_backtrace')) {
|
||||
$backtrace = @debug_backtrace();
|
||||
// remove last three calls:
|
||||
// debug_backtrace(), handleError() and addError()
|
||||
$backtrace = array_slice($backtrace, 3);
|
||||
} else {
|
||||
$backtrace = array();
|
||||
}
|
||||
|
||||
$this->setBacktrace($backtrace);
|
||||
}
|
||||
|
||||
@ -1388,7 +1388,7 @@ class ExportSql extends ExportPlugin
|
||||
|
||||
// need to use PhpMyAdmin\DatabaseInterface::QUERY_STORE
|
||||
// with $GLOBALS['dbi']->numRows() in mysqli
|
||||
$result = $GLOBALS['dbi']->query(
|
||||
$result = $GLOBALS['dbi']->tryQuery(
|
||||
'SHOW TABLE STATUS FROM ' . Util::backquote($db)
|
||||
. ' WHERE Name = \'' . $GLOBALS['dbi']->escapeString($table) . '\'',
|
||||
null,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user