FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment

This commit is contained in:
Finlay Metcalfe 2024-05-16 14:04:13 +12:00 committed by GitHub
parent f60e1bc236
commit 8b4865ed2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ class DBQueryBuilder
if (Environment::hasEnv('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;
}
/**