Commit 80404514e6af03c30453251bfecc892e04dc97dd

Authored by Hacene SI HADJ MOHAND
1 parent c504df71

#7152 Ok

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
php/classes/TimeTableCacheObject.php
@@ -191,7 +191,7 @@ class TimeTableCacheObject @@ -191,7 +191,7 @@ class TimeTableCacheObject
191 191
192 //Min & Max 192 //Min & Max
193 for ($i = 0; $i < count($this->indexes); ++$i) { 193 for ($i = 0; $i < count($this->indexes); ++$i) {
194 - if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0) 194 + if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
195 //Invalid interval 195 //Invalid interval
196 continue; 196 continue;
197 197
@@ -236,7 +236,7 @@ class TimeTableCacheObject @@ -236,7 +236,7 @@ class TimeTableCacheObject
236 //Standard deviation 236 //Standard deviation
237 $pow = 0; 237 $pow = 0;
238 for ($i = 0; $i < count($this->indexes); ++$i) { 238 for ($i = 0; $i < count($this->indexes); ++$i) {
239 - if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0) 239 + if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
240 //Invalid interval 240 //Invalid interval
241 continue; 241 continue;
242 242
@@ -261,7 +261,7 @@ class TimeTableCacheObject @@ -261,7 +261,7 @@ class TimeTableCacheObject
261 261
262 $durations = array(); 262 $durations = array();
263 for ($i = 0; $i < count($this->indexes); ++$i) { 263 for ($i = 0; $i < count($this->indexes); ++$i) {
264 - if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0) 264 + if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
265 //Invalid interval 265 //Invalid interval
266 continue; 266 continue;
267 267
@@ -284,7 +284,7 @@ class TimeTableCacheObject @@ -284,7 +284,7 @@ class TimeTableCacheObject
284 284
285 $durationMergedTotal = 0; 285 $durationMergedTotal = 0;
286 for ($i = 0; $i < count($this->indexes); ++$i) { 286 for ($i = 0; $i < count($this->indexes); ++$i) {
287 - if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0) 287 + if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
288 //Invalid interval 288 //Invalid interval
289 continue; 289 continue;
290 290
@@ -315,7 +315,7 @@ class TimeTableCacheObject @@ -315,7 +315,7 @@ class TimeTableCacheObject
315 $nbInvalid = 0; 315 $nbInvalid = 0;
316 $nbValid = 0; 316 $nbValid = 0;
317 for ($i = 0; $i < count($this->indexes); ++$i) { 317 for ($i = 0; $i < count($this->indexes); ++$i) {
318 - if ($this->intervals[$this->indexes[$i]]->getDuration() <= 0) 318 + if ($this->intervals[$this->indexes[$i]]->getDuration() < 0)
319 ++$nbInvalid; 319 ++$nbInvalid;
320 else 320 else
321 ++$nbValid; 321 ++$nbValid;
@@ -347,7 +347,7 @@ class TimeTableCacheObject @@ -347,7 +347,7 @@ class TimeTableCacheObject
347 for ($i = 0; $i < $limit; ++$i) { 347 for ($i = 0; $i < $limit; ++$i) {
348 if ($startIndex+$i >= count($this->indexes)) 348 if ($startIndex+$i >= count($this->indexes))
349 break; 349 break;
350 - if ($skipInvalid && ($this->intervals[$this->indexes[$startIndex+$i]]->getDuration() <= 0)) 350 + if ($skipInvalid && ($this->intervals[$this->indexes[$startIndex+$i]]->getDuration() < 0))
351 continue; 351 continue;
352 array_push($intervals, $this->intervals[$this->indexes[$startIndex+$i]]->toArray()); 352 array_push($intervals, $this->intervals[$this->indexes[$startIndex+$i]]->toArray());
353 } 353 }