From 80404514e6af03c30453251bfecc892e04dc97dd Mon Sep 17 00:00:00 2001
From: Hacene SI HADJ MOHAND <hacene.si-hadj-mohand@akka.eu>
Date: Mon, 16 Sep 2019 09:40:21 +0200
Subject: [PATCH] #7152 Ok

---
 php/classes/TimeTableCacheObject.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/php/classes/TimeTableCacheObject.php b/php/classes/TimeTableCacheObject.php
index 88f45b8..fc07d15 100644
--- a/php/classes/TimeTableCacheObject.php
+++ b/php/classes/TimeTableCacheObject.php
@@ -191,7 +191,7 @@ class TimeTableCacheObject
 
 		//Min & Max
 		for ($i = 0; $i < count($this->indexes); ++$i) {
-			if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0)
+			if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
 				//Invalid interval
 				continue;
 
@@ -236,7 +236,7 @@ class TimeTableCacheObject
 		//Standard deviation
 		$pow = 0;
 		for ($i = 0; $i < count($this->indexes); ++$i) {
-			if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0)
+			if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
 				//Invalid interval
 				continue;
 
@@ -261,7 +261,7 @@ class TimeTableCacheObject
 
 		$durations = array();
 		for ($i = 0; $i < count($this->indexes); ++$i) {
-			if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0)
+			if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
 				//Invalid interval
 				continue;
 
@@ -284,7 +284,7 @@ class TimeTableCacheObject
 
 		$durationMergedTotal = 0;
 		for ($i = 0; $i < count($this->indexes); ++$i) {
-			if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0)
+			if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
 				//Invalid interval
 				continue;
 
@@ -315,7 +315,7 @@ class TimeTableCacheObject
 		$nbInvalid  = 0;
 		$nbValid    = 0;
 		for ($i = 0; $i < count($this->indexes); ++$i) {
-			if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0)
+			if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
 				++$nbInvalid;
 			else
 				++$nbValid;
@@ -347,7 +347,7 @@ class TimeTableCacheObject
 		for ($i = 0; $i < $limit; ++$i) {
 			if ($startIndex+$i >= count($this->indexes))
 				break;
-			if ($skipInvalid && ($this->intervals[$this->indexes[$startIndex+$i]]->getDuration() <= 0))
+			if ($skipInvalid && ($this->intervals[$this->indexes[$startIndex+$i]]->getDuration() < 0))
 				continue;
 			array_push($intervals, $this->intervals[$this->indexes[$startIndex+$i]]->toArray());
 		}
--
libgit2 0.21.2