Commit 80404514e6af03c30453251bfecc892e04dc97dd
1 parent
c504df71
Exists in
master
and in
99 other branches
#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 | 191 | |
192 | 192 | //Min & Max |
193 | 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 | 195 | //Invalid interval |
196 | 196 | continue; |
197 | 197 | |
... | ... | @@ -236,7 +236,7 @@ class TimeTableCacheObject |
236 | 236 | //Standard deviation |
237 | 237 | $pow = 0; |
238 | 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 | 240 | //Invalid interval |
241 | 241 | continue; |
242 | 242 | |
... | ... | @@ -261,7 +261,7 @@ class TimeTableCacheObject |
261 | 261 | |
262 | 262 | $durations = array(); |
263 | 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 | 265 | //Invalid interval |
266 | 266 | continue; |
267 | 267 | |
... | ... | @@ -284,7 +284,7 @@ class TimeTableCacheObject |
284 | 284 | |
285 | 285 | $durationMergedTotal = 0; |
286 | 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 | 288 | //Invalid interval |
289 | 289 | continue; |
290 | 290 | |
... | ... | @@ -315,7 +315,7 @@ class TimeTableCacheObject |
315 | 315 | $nbInvalid = 0; |
316 | 316 | $nbValid = 0; |
317 | 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 | 319 | ++$nbInvalid; |
320 | 320 | else |
321 | 321 | ++$nbValid; |
... | ... | @@ -347,7 +347,7 @@ class TimeTableCacheObject |
347 | 347 | for ($i = 0; $i < $limit; ++$i) { |
348 | 348 | if ($startIndex+$i >= count($this->indexes)) |
349 | 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 | 351 | continue; |
352 | 352 | array_push($intervals, $this->intervals[$this->indexes[$startIndex+$i]]->toArray()); |
353 | 353 | } |
... | ... |