Changeset 1617

Show
Ignore:
Timestamp:
08/06/08 08:29:31 (2 months ago)
Author:
misja
Message:

Fixes #378, thanks joerosa

Files:

Legend:

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

    r1606 r1617  
    2222 
    2323    if ($results = get_records_sql($searchline)) { 
    24         if ($PAGE->search_type_unformatted == "person") { 
     24        if (!empty($PAGE->search_type_unformatted) && $PAGE->search_type_unformatted == "person") { 
    2525            $run_result .= "<h2>" . __gettext("Matching users:") . "</h2><p>"; 
    26         } else if ($PAGE->search_type_unformatted == "community") { 
     26        } else if (!empty($PAGE->search_type_unformatted) && $PAGE->search_type_unformatted == "community") { 
    2727            $run_result .= "<h2>" . __gettext("Matching communities:") . "</h2><p>"; 
    2828        } else { 
     
    3535        */ 
    3636 
    37         $body .= <<< END 
     37        $body = <<< END 
    3838    <table class="userlist"> 
    3939        <tr> 
     
    4141        $i = 1; 
    4242        $w = 100; 
    43         if (sizeof($result) > 4) { 
     43        if (sizeof($results) > 4) { 
    4444          $w = 50; 
    4545        }