aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/datetime.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-11-01 07:58:18 -0700
committerNils Adermann <naderman@naderman.de>2013-11-01 07:58:18 -0700
commite118b4f4c0dbca5912f11e0954fa422f36a58353 (patch)
treea4b06c160aa28839fd3bb949be1724ff55aa8ee2 /phpBB/phpbb/datetime.php
parent652365158ab3f788a1a7b31e6e599198d19cc6f7 (diff)
parentae7ef3e09dd284b8876ad74de16321c373d251af (diff)
downloadforums-e118b4f4c0dbca5912f11e0954fa422f36a58353.tar
forums-e118b4f4c0dbca5912f11e0954fa422f36a58353.tar.gz
forums-e118b4f4c0dbca5912f11e0954fa422f36a58353.tar.bz2
forums-e118b4f4c0dbca5912f11e0954fa422f36a58353.tar.xz
forums-e118b4f4c0dbca5912f11e0954fa422f36a58353.zip
Merge pull request #1839 from bantu/task/code-sniffer
More PHP Code Sniffer rules
Diffstat (limited to 'phpBB/phpbb/datetime.php')
-rw-r--r--phpBB/phpbb/datetime.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/datetime.php b/phpBB/phpbb/datetime.php
index 84b13202af..dfa21976e0 100644
--- a/phpBB/phpbb/datetime.php
+++ b/phpBB/phpbb/datetime.php
@@ -74,8 +74,8 @@ class datetime extends \DateTime
* finally check that relative dates are supported by the language pack
*/
if ($delta <= 3600 && $delta > -60 &&
- ($delta >= -5 || (($now_ts / 60) % 60) == (($timestamp / 60) % 60))
- && isset($this->user->lang['datetime']['AGO']))
+ ($delta >= -5 || (($now_ts / 60) % 60) == (($timestamp / 60) % 60))
+ && isset($this->user->lang['datetime']['AGO']))
{
return $this->user->lang(array('datetime', 'AGO'), max(0, (int) floor($delta / 60)));
}