summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2011-11-04 17:26:07 (GMT)
committer Daniel Wehner2011-11-04 20:52:48 (GMT)
commiteb235f2486ecad2f5cc38ef461eb23f0bb8139a1 (patch)
treed2e1aeae8806575734399167026b9150f3f54e85
parent939db64d8071ea534d27a0529d5c37a116c777fd (diff)
Followup #1118732: Fix db_version notice.
-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'");
}