Browse Source

Of course the topic id should be logged too... - Thanks live627 to point it out

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

+ 1 - 1
Sources/Post.php

@@ -2410,7 +2410,7 @@ function AnnouncementSend()
 	// All members have received a mail. Go to the next screen.
 	if ($smcFunc['db_num_rows']($request) == 0)
 	{
-		logAction('announce_topic', array(), 'user');
+		logAction('announce_topic', array('topic' => $topic), 'user');
 		if (!empty($_REQUEST['move']) && allowedTo('move_any'))
 			redirectexit('action=movetopic;topic=' . $topic . '.0' . (empty($_REQUEST['goback']) ? '' : ';goback'));
 		elseif (!empty($_REQUEST['goback']))