diff --git a/sections/forums/forum.php b/sections/forums/forum.php
index 11a0ec8e..52121901 100644
--- a/sections/forums/forum.php
+++ b/sections/forums/forum.php
@@ -90,7 +90,7 @@
[New Thread]
} ?>
[Search this Forum]
-
+
[=$ForumSubscribeActionText?>]
} ?>
diff --git a/sections/forums/take_new_thread.php b/sections/forums/take_new_thread.php
index 25cb3c8b..8aecc6ad 100644
--- a/sections/forums/take_new_thread.php
+++ b/sections/forums/take_new_thread.php
@@ -88,15 +88,15 @@
}
//auto subscribe
-
$DB->query("SELECT UserID FROM subscribed_forums WHERE ForumID = '$ForumID' AND UserID <> '$LoggedUser[ID]'");
-while(list($SubscriberID) = $DB->next_record()) {
- $DB->query("INSERT INTO users_subscriptions VALUES ($SubscriberID, $TopicID)");
- // $DB->query("INSERT INTO forums_last_read_topics
- // (UserID, TopicID, PostID) VALUES
- // ('$SubscriberID', '".$TopicID ."', '".db_string($PostID)."')
- // ON DUPLICATE KEY UPDATE PostID='$LastPost'");
- $Cache->delete_value('subscriptions_user_'.$SubscriberID);
+if($DB->record_count() > 0) {
+ $Users = $DB->to_array(false, MYSQLI_BOTH, false);
+ foreach ($Users as $User) {
+ $SubscriberID = $User['UserID'];
+ $DB->query("INSERT INTO users_subscriptions VALUES ($SubscriberID, $TopicID)");
+ $Cache->delete_value('subscriptions_user_'.$SubscriberID);
+
+ }
}
diff --git a/sections/userhistory/subscriptions.php b/sections/userhistory/subscriptions.php
index d4898b34..af61df2d 100644
--- a/sections/userhistory/subscriptions.php
+++ b/sections/userhistory/subscriptions.php
@@ -2,7 +2,7 @@
/*
User topic subscription page
*/
-
+define('FORUM_AUTO_SUBSCRIPTION_DATE', '2013-01-12');
if(!empty($LoggedUser['DisableForums'])) {
error(403);
}