diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-11 22:49:10 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-11 22:52:09 +0200 |
commit | 8d20f095aaa9e00f10a67022f0f0e84bf0a2b802 (patch) | |
tree | 8e9a32cbf4d91c91866095a50306f6dba47ac061 /phpBB/posting.php | |
parent | 92e25398c72fe5b1766a6ad4e411aacc72bd177c (diff) | |
download | forums-8d20f095aaa9e00f10a67022f0f0e84bf0a2b802.tar forums-8d20f095aaa9e00f10a67022f0f0e84bf0a2b802.tar.gz forums-8d20f095aaa9e00f10a67022f0f0e84bf0a2b802.tar.bz2 forums-8d20f095aaa9e00f10a67022f0f0e84bf0a2b802.tar.xz forums-8d20f095aaa9e00f10a67022f0f0e84bf0a2b802.zip |
[ticket/12518] Apply De Morgan to make the conditions easier to read
PHPBB3-12518
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 6e1bde42f8..441de9f28c 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -384,7 +384,7 @@ if ($mode == 'edit' && !$auth->acl_get('m_edit', $forum_id)) $force_edit_allowed = false; $s_cannot_edit = $user->data['user_id'] != $post_data['poster_id']; - $s_cannot_edit_time = !($post_data['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time']); + $s_cannot_edit_time = $config['edit_time'] && $post_data['post_time'] <= time() - ($config['edit_time'] * 60); $s_cannot_edit_locked = $post_data['post_edit_locked']; /** |