diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:41:14 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:41:14 +1100 |
| commit | 01bbe8fca7e50327c54faa26e41a1fdd57156762 (patch) | |
| tree | ab068bf9395dfd644d75b4a74b024ff0ea1e0061 | |
| parent | 8fe1846e5642ad50790dc1626a025f9845d74d69 (diff) | |
Optimize code when checking if locked.
| -rw-r--r-- | post.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -101,10 +101,9 @@ // Check if thread is locked // but allow mods to post - if(!$OP && threadLocked($post['thread'])) { - if(!$mod || $mod['type'] < MOD_POSTINLOCKED) { + if(!$OP && (!$mod || $mod['type'] < MOD_POSTINLOCKED)) { + if(threadLocked($post['thread'])) error(ERROR_LOCKED); - } } if($post['has_file']) { |
