Merged in bugfix/HOR-3379 (pull request #5737)

HOR-3379

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Roly
2017-06-22 19:47:01 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 16 additions and 13 deletions

View File

@@ -2912,19 +2912,20 @@ class AppSolr
$oAppSolrQueue->createUpdate ($AppUid, $traceData, $updated);
}
private function getCurrentTraceInfo()
{
$resultTraceString = "";
//
$traceData = debug_backtrace();
foreach ($traceData as $key => $value) {
if($value['function'] != 'getCurrentTraceInfo' && $value['function'] != 'require_once')
$resultTraceString .= $value['file'] . " (" . $value['line'] . ") " . $value['function'] . "\n";
private function getCurrentTraceInfo()
{
$resultTraceString = "";
$traceData = debug_backtrace();
foreach ($traceData as $key => $value) {
if ($value['function'] != 'getCurrentTraceInfo' && $value['function'] != 'require_once') {
if (isset($value['file']) && isset($value['line']) && isset($value['function'])) {
$resultTraceString .= $value['file'] . " (" . $value['line'] . ") " . $value['function'] . "\n";
}
}
}
return $resultTraceString;
}
return $resultTraceString;
}
/**
* Update application records in Solr that are stored in APP_SOLR_QUEUE table
*/

View File

@@ -1152,7 +1152,9 @@ class Cases
//Logger deleteCase
$nameFiles = '';
foreach (debug_backtrace() as $node) {
$nameFiles .= $node['file'] . ":" . $node['function'] . "(" . $node['line'] . ")\n";
if (isset($node['file']) && isset($node['function']) && isset($node['line'])) {
$nameFiles .= $node['file'] . ":" . $node['function'] . "(" . $node['line'] . ")\n";
}
}
$dataLog = \Bootstrap::getDefaultContextLog();
$dataLog['usrUid'] = isset($_SESSION['USER_LOGGED']) ? $_SESSION['USER_LOGGED'] : G::LoadTranslation('UID_UNDEFINED_USER');