Fix Guestbook in cmsmadesimple

The guestbook module of cmsmadesimple has the bad habit of showing the following error message after updates: Call to undefined function nl2pnbr(). The fix is quite easy. Just open the filemodules/Guestbook/action.get-entrylist.php in a texteditor and replace the line

$entry['message'] = nl2pnbr($entry['message']);

with the line

$entry['message'] = nl2br($entry['message']);

After that it works just fine.

Leave a comment

Your email address will not be published. Required fields are marked *