Wedge
Public area => Bug reports => The Pub => Archived fixes => Topic started by: live627 on September 23rd, 2013, 06:29 AM
-
Let's remove duplicate code!
/Sources/Post.php (working copy)
@@ -243,8 +243,6 @@
);
}
- $context['post_error'] = array('messages' => array());
-
// See if any new replies have come along.
if (empty($_REQUEST['msg']) && !empty($topic))
{
-
Good find!
Isn't it better to remove the second one, though..? The second one is included Inside a test, and there's another access to 'post_error' within another code block outside of it; while it's unlikely that it'll be touched, I'd rather we take this one outside the code block, and thus leave the one at line 243 in, and remove the one at line 360 or so.
Agreed, disagreed..? :^^;:
-
Agreed.
-
Thanks, done then.. ;) (Well, you might have seen it, latest rev :P)
-
Nope, not in the logs.