diff --git a/src/ORM/Connect/DBQueryBuilder.php b/src/ORM/Connect/DBQueryBuilder.php index f2f16d034..8377c6697 100644 --- a/src/ORM/Connect/DBQueryBuilder.php +++ b/src/ORM/Connect/DBQueryBuilder.php @@ -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; } /**