mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment
This commit is contained in:
parent
f60e1bc236
commit
8b4865ed2c
@ -86,7 +86,7 @@ class DBQueryBuilder
|
|||||||
if (Environment::hasEnv('SS_TRACE_DB_QUERY_ORIGIN')) {
|
if (Environment::hasEnv('SS_TRACE_DB_QUERY_ORIGIN')) {
|
||||||
return (bool) Environment::getEnv('SS_TRACE_DB_QUERY_ORIGIN');
|
return (bool) Environment::getEnv('SS_TRACE_DB_QUERY_ORIGIN');
|
||||||
}
|
}
|
||||||
return static::config()->get('trace_query_origin');
|
return static::config()->get('trace_query_origin') ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user