Ravens PHP Scripts

Important fix for PHP-Nuke 7.0
Date: Saturday, December 13, 2003 @ 08:56:06 CST
Topic: Bugs - Fixed


There is some debate over who found this first, so out of respect for all concerned I am not attributing this to anyone. What is important is the fix.

There is a bug present in the is_group() function on the mainfile.php distributed with PHP-Nuke 7.0. Read on for the fix.

You need to edit mainfile.php and go to the line 289 where you can find the following text:

if ($points > 0 AND $points >= $row[points] || $mod_group == 0) {
Just change it to:
if (($points >= 0 AND $points >= $grp) OR $mod_group == 0) {

Admin Note: I have updated the 7.0 download package to reflect this.





This article comes from Ravens PHP Scripts
https://www.ravenphpscripts.com

The URL for this story is:
https://www.ravenphpscripts.com/modules.php?name=News&file=article&sid=215