well what version of the software do you have?
Line 1815 in my pp-inc.php does not correspond with anything that could be an error and nothing close that I see
What is your line 1815 if that file?
Check you dont have zero's in any options in admin for say like columns per page etc. Something is set to 0 that can not be