Skip to content

Commit

Permalink
Don't use a function call to check if $timestamp is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Lückers committed Dec 13, 2017
1 parent 2cf26fa commit 362c851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/UrlHelper.php
Expand Up @@ -223,7 +223,7 @@ protected function _encodeUrl($url)
*/
public function assetTimestamp($path, $timestamp = null)
{
if (is_null($timestamp)) {
if ($timestamp === null) {
$timestamp = Configure::read('Asset.timestamp');
}
$timestampEnabled = $timestamp === 'force' || ($timestamp === true && Configure::read('debug'));
Expand Down

0 comments on commit 362c851

Please sign in to comment.