diff options
-rw-r--r-- | includes/common.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc index 2eb3693da..198163900 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -827,7 +827,7 @@ function format_interval($timestamp, $granularity = 2) { * A translated date string in the requested format. */ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL) { - if ($timezone === NULL) { + if (!isset($timezone)) { global $user; if (variable_get('configurable_timezones', 1) && $user->uid && strlen($user->timezone)) { $timezone = $user->timezone; @@ -945,8 +945,8 @@ function url($path = NULL, $query = NULL, $fragment = NULL, $absolute = FALSE) { } // Cache the clean_url variable to improve performance. - if ($clean_url === NULL) { - $clean_url = (variable_get('clean_url', '0') == '0') ? false : true; + if (!isset($clean_url)) { + $clean_url = (bool)variable_get('clean_url', '0'); } $base = ($absolute ? $base_url .'/' : ''); |