I get the following error with the code
syntax error at /home/sites/site10/web/forums/cgi-bin/ubb_library.pl line 1677, near "} else"
which appears to be about this section of replacement code
Next, find:
---------------------------------------------------
############################################
# print finalarray to file
&Lock("lock.file");
open (THREADS, ">$ForumsPath/$ExactPath/forum$thisnumber.threads") or die("Unabl
e to open thread summary file");
foreach $one(@finalarray) {
chomp($one);
print THREADS ("$onen");
}
close (THREADS);
&Unlock("lock.file");
chmod (0666, "$ForumsPath/$ExactPath/forum$thisnumber.threads");
} # end ForumSummary sr
---------------------------------------------------
REPLACE that with:
---------------------------------------------------
############################################
# print finalarray to file
if ($WriteSummary ne "no") {
&Lock("lock.file");
open (THREADS, ">$ForumsPath/$ExactPath/forum$thisnumber.threads") or die("Unabl
e to open thread summary file");
foreach $one(@finalarray) {
chomp($one);
print THREADS ("$onen");
}
close (THREADS);
&Unlock("lock.file");
chmod (0666, "$ForumsPath/$ExactPath/forum$thisnumber.threads");
} else {
return (@finalarray);
}
} # end ForumSummary sr
---------------------------------------------------
any help would be gratefully recieved (btw using 5.47d)
tia
stubbsy
[ June 06, 2001 06:31 AM: Message edited by: stubbsy ]