@@ -629,15 +629,15 @@ |
||
| 629 | 629 | $unixTS = $this->getUnixValue(); |
| 630 | 630 | |
| 631 | 631 | if ($now > $unixTS) { |
| 632 | - $difference = $now - $unixTS; |
|
| 632 | + $difference = $now-$unixTS; |
|
| 633 | 633 | $tense = 'ago'; |
| 634 | 634 | } else { |
| 635 | - $difference = $unixTS - $now; |
|
| 635 | + $difference = $unixTS-$now; |
|
| 636 | 636 | $tense = 'from now'; |
| 637 | 637 | } |
| 638 | 638 | |
| 639 | - for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths) - 1; ++$i) { |
|
| 640 | - $difference = round($difference / $lengths[$i]); |
|
| 639 | + for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths)-1; ++$i) { |
|
| 640 | + $difference = round($difference/$lengths[$i]); |
|
| 641 | 641 | } |
| 642 | 642 | |
| 643 | 643 | $difference = round($difference); |