summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/handlers.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/handlers.inc b/includes/handlers.inc
index b69755b..6eddc4e 100644
--- a/includes/handlers.inc
+++ b/includes/handlers.inc
@@ -1145,7 +1145,7 @@ function views_get_timezone() {
elseif ($GLOBALS['db_type'] == 'mysqli') {
db_query("SET @@session.time_zone = '$offset'");
}
- elseif ($GLOBALS['db_type'] == 'mysql' && version_compare(db_version, '4.1.3', '>=')) {
+ elseif ($GLOBALS['db_type'] == 'mysql' && version_compare(db_version(), '4.1.3', '>=')) {
db_query("SET @@session.time_zone = '$offset'");
}