fixed nntp_server problem

This commit is contained in:
skeeter 2000-10-25 10:10:59 +00:00
parent f6109d9ed2
commit 1baf88c4c3

View File

@ -41,10 +41,10 @@
$db->query("delete from config");
while ($newsetting = each($newsettings)) {
if($newsetting[0] == "nntp_server") {
$db->query("select nntp_server from config");
$db->query("select config_value FROM config WHERE config_name='nntp_server'");
if($db->num_rows()) {
$db->next_record();
if($db->f("nntp_server") <> $newsetting[1]) {
if($db->f("config_value") <> $newsetting[1]) {
$db->query("DELETE FROM newsgroups");
$db->query("DELETE FROM users_newsgroups");
}