[openelec-Commits] r1386 - branches/5.0.0-develop/sql/pgsql

0 views
Skip to first unread message

fmi...@adullact.net

unread,
May 24, 2018, 1:42:10 PM5/24/18
to openmairi...@googlegroups.com
Author: fmichon
Date: 2018-05-24 19:42:08 +0200 (Thu, 24 May 2018)
New Revision: 1386

Modified:
branches/5.0.0-develop/sql/pgsql/trt_mention.inc.php
Log:
* Suppression de notices PHP.


Modified: branches/5.0.0-develop/sql/pgsql/trt_mention.inc.php
===================================================================
--- branches/5.0.0-develop/sql/pgsql/trt_mention.inc.php 2018-05-24 17:37:25 UTC (rev 1385)
+++ branches/5.0.0-develop/sql/pgsql/trt_mention.inc.php 2018-05-24 17:42:08 UTC (rev 1386)
@@ -29,7 +29,7 @@
$sqlP .= " AND ";
$sqlP .= " ( ";
//
-if ($dateelection1 != NULL) {
+if (isset($dateelection1) === true) {
//
$sqlP .= " (procuration.debut_validite <='".$dateelection1."' ";
$sqlP .= " AND ";
@@ -36,12 +36,13 @@
$sqlP .= " procuration.fin_validite >='".$dateelection1."') ";
}
//
-if ($dateelection1 != NULL && $dateelection2 != NULL) {
+if (isset($dateelection1) === true
+ && isset($dateelection2) === true) {
//
$sqlP .= " OR ";
}
//
-if ($dateelection2 != NULL) {
+if (isset($dateelection2) === true) {
//
$sqlP .= " (procuration.debut_validite <='".$dateelection2."' ";
$sqlP .= " AND ";
@@ -62,7 +63,7 @@
$sqlCV .= " AND ";
$sqlCV .= " ( ";
//
-if ($dateelection1 != NULL) {
+if (isset($dateelection1) === true) {
//
$sqlCV .= " (centrevote.debut_validite <='".$dateelection1."' ";
$sqlCV .= " AND ";
@@ -69,12 +70,13 @@
$sqlCV .= " centrevote.fin_validite >='".$dateelection1."') ";
}
//
-if ($dateelection1 != NULL && $dateelection2 != NULL) {
+if (isset($dateelection1) === true
+ && isset($dateelection2) === true) {
//
$sqlCV .= " OR ";
}
//
-if ($dateelection2 != NULL) {
+if (isset($dateelection2) === true) {
//
$sqlCV .= " (centrevote.debut_validite <='".$dateelection2."' ";
$sqlCV .= " AND ";

Reply all
Reply to author
Forward
0 new messages