diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index 54e19bd6c..ac78a5d4c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -250,11 +250,17 @@ function timer_print() { } function page_header() { - if (variable_get("dev_timer", 0)) timer_start(); + global $user; + + if (variable_get("dev_timer", 0)) { + timer_start(); + } } function page_footer() { - if (variable_get("dev_timer", 0)) timer_print(); + if (variable_get("dev_timer", 0)) { + timer_print(); + } } $conf = conf_init(); |