[Duplicate] Division by zero in managegroup.php
#1
$per_page is not defined in managegroup.php (line 358) and throws a Division by zero warning:
	$perpage = (int)$mybb->settings['membersperpage'];
	if($perpage < 1)
	{
		$perpage = 20;
	}

	$page = $mybb->get_input('page', MyBB::INPUT_INT);
	if($page && $page > 0)
	{
		$start = ($page-1) * $perpage;
		$pages = ceil($numusers / $per_page);
		if($page > $pages)
		{
			$start = 0;
			$page = 1;
		}
	}
	else
	{
		$start = 0;
		$page = 1;
	}
[Image: banner.png]
Reply


Messages In This Thread
Division by zero in managegroup.php - by StefanT - 2019-02-17, 05:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)