aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-05-26 14:07:11 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-05-26 14:07:11 +0000
commit4e71b1b96d21e78463a768004c1c8ed2e1d952d5 (patch)
tree0bc57d66fe74768deda29914ab13b8a472e131aa
parent59971466d7818daae2dfe8d6cef369909bc1deec (diff)
downloadforums-4e71b1b96d21e78463a768004c1c8ed2e1d952d5.tar
forums-4e71b1b96d21e78463a768004c1c8ed2e1d952d5.tar.gz
forums-4e71b1b96d21e78463a768004c1c8ed2e1d952d5.tar.bz2
forums-4e71b1b96d21e78463a768004c1c8ed2e1d952d5.tar.xz
forums-4e71b1b96d21e78463a768004c1c8ed2e1d952d5.zip
Editing time foobar
git-svn-id: file:///svn/phpbb/trunk@4061 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 79a07a4f78..3d8ce85e59 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -317,7 +317,7 @@ if (($forum_status == ITEM_LOCKED || $topic_status == ITEM_LOCKED) && !$perm['m_
}
// Can we edit this post?
-if (($mode == 'edit' || $mode == 'delete') && !$perm['m_edit'] && $config['edit_time'] && $post_time > time() - $config['edit_time'])
+if (($mode == 'edit' || $mode == 'delete') && !$perm['m_edit'] && $config['edit_time'] && $post_time < time() - $config['edit_time'])
{
trigger_error($user->lang['CANNOT_EDIT_TIME']);
}