From 70d2c5189e9031b83b4bba0909280b81a631eb25 Mon Sep 17 00:00:00 2001 From: Florian Azizian <florian.azizian@maarch.org> Date: Mon, 20 Apr 2015 14:17:21 +0000 Subject: [PATCH] =?UTF-8?q?FEAT=20#2241=20correction=20comparaison=20bool?= =?UTF-8?q?=C3=A9en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/trunk/core/class/class_functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/trunk/core/class/class_functions.php b/core/trunk/core/class/class_functions.php index b37e8ed705b..815fa9e9928 100644 --- a/core/trunk/core/class/class_functions.php +++ b/core/trunk/core/class/class_functions.php @@ -900,7 +900,7 @@ class functions return ''; } else { if ($databasetype == "SQLSERVER") { - if ($withTimeZone=true) { + if ($withTimeZone) { return $day . "-" . $month . "-" . $year . " " . $hours; }else{ return $day . "-" . $month . "-" . $year; @@ -908,13 +908,13 @@ class functions } else if ($databasetype == "POSTGRESQL") { if ($_SESSION['config']['lang'] == "fr") { - if ($withTimeZone = true) { + if ($withTimeZone) { return $day . "-" . $month . "-" . $year . " " . $hours; }else{ return $day . "-" . $month . "-" . $year; } } else { - if ($withTimeZone=true) { + if ($withTimeZone) { return $year . "-" . $month . "-" . $day . " " . $hours; }else{ return $year . "-" . $month . "-" . $day; -- GitLab