Skip to content

Commit

Permalink
Check groups function fixed
Browse files Browse the repository at this point in the history
This function was not going to work at all.
  • Loading branch information
Omar G. committed Dec 19, 2012
1 parent 64522dc commit dc025ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Upload/inc/plugins/newpoints/npbumpthread.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}
elseif(THIS_SCRIPT == 'forumdisplay.php')
{
control_object($GLOBALS['db'], '
npbumpthread_control_object($GLOBALS['db'], '
function query($string, $hide_errors=0, $write_query=0)
{
if(strpos($conditions, \'lastpost\'))
Expand Down Expand Up @@ -283,9 +283,9 @@ function npbumpthread_admin_forumrules_post(&$array)
}

// Check if user meets user group memberships
function npbumpthread_check_groups($groups_comma)
function npbumpthread_check_groups($groups)
{
if(empty($groups) && $empty)
if(empty($groups))
{
return true;
}
Expand Down Expand Up @@ -477,7 +477,7 @@ function npbumpthread_clean_array($array, $implode=false, $delimiter=',')
}

// control_object by Zinga Burga from MyBBHacks ( mybbhacks.zingaburga.com ), 1.62
function control_object(&$obj, $code)
function npbumpthread_control_object(&$obj, $code)
{
static $cnt = 0;
$newname = '_objcont_'.(++$cnt);
Expand Down

0 comments on commit dc025ec

Please sign in to comment.