浏览代码

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

Joshua Lückers 8 年之前
父节点
当前提交
362c851be6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
     public function assetTimestamp($path, $timestamp = null)
     {
     {
-        if (is_null($timestamp)) {
+        if ($timestamp === null) {
             $timestamp = Configure::read('Asset.timestamp');
             $timestamp = Configure::read('Asset.timestamp');
         }
         }
         $timestampEnabled = $timestamp === 'force' || ($timestamp === true && Configure::read('debug'));
         $timestampEnabled = $timestamp === 'force' || ($timestamp === true && Configure::read('debug'));