Browse Source

In this position it should work better

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
cfd4715b4e
1 changed files with 6 additions and 6 deletions
  1. 6 6
      Sources/Post.php

+ 6 - 6
Sources/Post.php

@@ -540,6 +540,12 @@ function Post($post_errors = array())
 			else
 				isAllowedTo('modify_any');
 
+			if ($context['can_announce'] && !empty($row['id_action']))
+			{
+				loadLanguage('Errors');
+				$context['post_error']['messages'][] = $txt['error_topic_already_announced'];
+			}
+
 			if (!empty($modSettings['attachmentEnable']))
 			{
 				$request = $smcFunc['db_query']('', '
@@ -568,12 +574,6 @@ function Post($post_errors = array())
 				$smcFunc['db_free_result']($request);
 			}
 
-			if ($context['can_announce'] && !empty($row['id_action']))
-			{
-				loadLanguage('Errors');
-				$context['post_error']['messages'][] = $txt['error_topic_already_announced'];
-			}
-
 			// Allow moderators to change names....
 			if (allowedTo('moderate_forum') && !empty($topic))
 			{