Blimey I think I fixed it!

where I had merged the older functions_general.php file with the new, I commented this:

PHP Code:
if (is_array($value) || in_array($key$exclude_array)) continue; 
it was just above the line that was throwing the error! with that in place it now doesnt error!