MyBB Community Forums

Full Version: AMP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I've recently added Advanced MyCode Permission and I'm getting this error :
"Warning [2] in_array() expects at least 2 parameters, 1 given - Line: 231 - File: inc/plugins/amp.php PHP 5.3.9 (Linux)"


[Image: 1zb9u9y.png]

Anyone have any ways to solve this?
can you give code of lines 228 - 234 from amp.php file .. (use notepad++ to open the file)
(2012-02-21, 09:49 AM)ranjani Wrote: [ -> ]can you give code of lines 228 - 234 from amp.php file .. (use notepad++ to open the file)

		if($mc['amp_noforums'] != '') {
			$fids = $mc['amp_noforums'];
			$fids = explode(",", $fids);
			if(in_array($fid, $gids)) {
				break;
			}
		}
change if(in_array($fid, $gids)) to if(in_array($fid, $fids)) ; save the file & check if error gets fixed ...
Thanks! Big Grin