Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
+10
-2
@@ -103,8 +103,16 @@ class _Log extends \IPS\Patterns\ActiveRecord
|
||||
/* If this is an actual request and not command line-invoked */
|
||||
if( \IPS\Dispatcher::hasInstance() AND mb_strpos( php_sapi_name(), 'cli' ) !== 0 )
|
||||
{
|
||||
$log->url = \IPS\Request::i()->url();
|
||||
$log->member_id = \IPS\Member::loggedIn()->member_id ?: 0;
|
||||
$log->url = \IPS\Request::i()->url();
|
||||
try
|
||||
{
|
||||
// Early exceptions may occur before the logged in object is set up.
|
||||
$log->member_id = \IPS\Member::loggedIn()->member_id ?: 0;
|
||||
}
|
||||
catch( \Error $e )
|
||||
{
|
||||
$log->member_id = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if ( \IPS\Application::load('core')->long_version >= 106149 ) #Column was added in 106149
|
||||
|
||||
Reference in new issue
Block a user