Changeset 1602

Show
Ignore:
Timestamp:
06/09/08 07:58:09 (5 months ago)
Author:
misja
Message:

#369, when searching from tag cloud, assumes unset variable - thanks edfactor

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/search/lib/search_suggest_users.php

    r1539 r1602  
    2121     
    2222    if ($results = get_records_sql($searchline)) { 
    23         if ($PAGE->search_type_unformatted == "person") { 
     23        if (!empty($PAGE->search_type_unformatted) && $PAGE->search_type_unformatted == "person") { 
    2424            $run_result .= "<h2>" . __gettext("Matching users:") . "</h2><p>"; 
    25         } else if ($PAGE->search_type_unformatted == "community") { 
     25        } else if (!empty($PAGE->search_type_unformatted) && $PAGE->search_type_unformatted == "community") { 
    2626            $run_result .= "<h2>" . __gettext("Matching communities:") . "</h2><p>"; 
    2727        } else {