Fix some PHP notices

swentel - December 21, 2008 - 22:50
Project:Restricted Search
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Description

When running with full error reporting, this module throws some PHP notices. Patch attached fixes those.

AttachmentSize
search_block_notices.patch1.24 KB

#1

deviantintegral - December 28, 2008 - 03:57

Thanks for the patch. I've made a few changes and attached an updated patch. I've changed the if statement to match Drupal code conventions, and renamed the $type2 variable to something a bit more descriptive. Please try it out and let me know how it goes.

AttachmentSize
349907_search_block_notices_1.patch 2 KB
 
 

Drupal is a registered trademark of Dries Buytaert.