fixes to google analytics to check if response is valid
This commit is contained in:
parent
4febdda65f
commit
fd162f97fc
@ -40,6 +40,9 @@ class Pluf_Middleware_GoogleAnalytics
|
||||
*/
|
||||
function process_response($request, $response)
|
||||
{
|
||||
if (isset($response) && !isset($response->status_code))
|
||||
return $response;
|
||||
|
||||
if (!Pluf::f('google_analytics_id', false)) {
|
||||
return $response;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user