Hi mjohn,
Thanks for the bug report and fix.
For clarification to readers of this post, this error is for the current svn version of mojoPortal. The 2.3.1.0 version has not yet been released as of this post. It will be fixed in the 2.3.1.0 release.
Best,
Joe