Browse Source

Don't use a function call to check if `$timestamp` is null.

Joshua Lückers 8 years ago
parent
commit
362c851be6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/View/Helper/UrlHelper.php

+ 1 - 1
src/View/Helper/UrlHelper.php

@@ -223,7 +223,7 @@ class UrlHelper extends Helper
      */
     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'));