Adding a hidden_p flag to the portal_pages table, to provide a way to exclude certain portal pages from the main navigation. Visibility will typically be toggled from the Customize Layout page in dotlrn.
Making sure the search exists before its logged - this threw an error when was on the advanced search page and clicked on the contacts page (and the contact::search::log proc attempted to log a search where the search_id wasn't in the database