MyBB Community Forums

Full Version: NewPoints problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Everytime I go to the settings page of NewPoints in my admin cp, I get this message:

Quote:Fatal error: Only variables can be passed by reference in /home/a1002462/public_html/admin/modules/newpoints/settings.php on line 58

Please can someone help!
Open ./admin/modules/newpoints/settings.php , what is at line# 58 ?? Please paste few lines before and after of it here too.
	// Log admin action
log_admin_action();
 
flash_message($lang->success_settings_updated, 'success');
admin_redirect("index.php?module=newpoints-settings");
}
 (MY MESSAGE: THIS IS LINE 58)
// What type of page
$cache_groups = $cache_settings = array();
$mybb->input['plugin'] = trim($mybb->input['plugin']);
if($mybb->input['plugin'])
{
// Cache settings
$query = $db->simple_select("newpoints_settings", "*", "plugin='".$db->escape_string($mybb->input['plugin'])."'", array('order_by' => 'disporder'));
while($setting = $db->fetch_array($query))
{
$cache_settings[$setting['plugin']][$setting['sid']] = $setting;