Skip to content

Commit

Permalink
Fix #7 incorrect grouping of conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kijin committed Nov 16, 2016
1 parent 7878396 commit 4108ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supercache.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ public function getDeviceType()
}

// Save the device type in the session for future reference.
if (!$is_mobile_enabled && !method_exists('Context', 'getSessionStatus') || Context::getSessionStatus())
if (!$is_mobile_enabled && (!method_exists('Context', 'getSessionStatus') || Context::getSessionStatus()))
{
$_SESSION['supercache_device_type'] = sprintf('%s|%s', $device_type, md5($_SERVER['HTTP_USER_AGENT']));
}
Expand Down

0 comments on commit 4108ec2

Please sign in to comment.