PDA

View Full Version : [fixed] very small bug in announcement.php



Xenon
Thu 27th Jun '02, 3:19pm
Hi as i found out, there is a bug in the announcement.php since a few versions (don't exactly know since when)

this lines at the beginning of the file produce an empty errormessage:

$getperms=getpermissions($foruminfo[forumid]);
if (!$getperms[canview]) {
eval("standarderror(\"".gettemplate("error_nopermission")."\");");
exit;
}

i think this should be the correct code:

$getperms=getpermissions($foruminfo[forumid]);
if (!$getperms[canview]) {
show_nopermission();
}

hope it is the right place to post this :)

Scott MacVicar
Thu 27th Jun '02, 6:37pm
Yep thats what it should be.