Unverified Commit fbc0967c authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: update condition in AnalyticsTrait

parent 8c64f25a
......@@ -34,7 +34,7 @@ trait AnalyticsTrait
? '- Direct -'
: parse_url($referer, PHP_URL_HOST);
parse_str(parse_url($referer, PHP_URL_QUERY), $queries);
$keywords = array_key_exists('q', $queries) ? null : $queries['q'];
$keywords = array_key_exists('q', $queries) ? $queries['q'] : null;
$procedureName = $db->prefixTable('analytics_website');
$db->query("call {$procedureName}(?,?,?,?,?,?)", [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment