Correct P6 to P7 typo in line 48 of lib.php