Merge pull request #11241 from Ofthemasses/patch-1

FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment
This commit is contained in:
Guy Sartorelli 2024-09-26 10:40:39 +12:00 committed by GitHub
commit c224a84b3a
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;
}
/**