mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
fix PHP 8.0 error when converting an InfoLog into a ticket
Cannot access offset of type string on string Also add line and file to our non-json exception handler, for easier identifying the problems
This commit is contained in:
parent
fdd275c605
commit
ccadef611d
@ -471,7 +471,7 @@ class Link extends Link\Storage
|
||||
*/
|
||||
static function temp_link_id($app,$id)
|
||||
{
|
||||
return $app.':'.(!in_array($app, array(self::VFS_APPNAME,self::VFS_LINK, self::DATA_APPNAME)) ? $id : $id['name']);
|
||||
return $app.':'.(!in_array($app, array(self::VFS_APPNAME,self::VFS_LINK, self::DATA_APPNAME)) || !is_array($id) ? $id : $id['name']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -104,6 +104,7 @@ function egw_exception_handler($e)
|
||||
if(!isset($_SERVER['HTTP_HOST']) || $GLOBALS['egw_info']['flags']['no_exception_handler'] == 'cli')
|
||||
{
|
||||
echo ($headline ? $headline.': ' : '').$e->getMessage()."\n";
|
||||
echo $e->getFile().' ('.$e->getLine().")\n";
|
||||
if ($GLOBALS['egw_info']['server']['exception_show_trace'])
|
||||
{
|
||||
echo $e->getTraceAsString()."\n";
|
||||
|
Loading…
Reference in New Issue
Block a user