Changeset 1617
- Timestamp:
- 08/06/08 08:29:31 (2 months ago)
- Files:
-
- devel/mod/search/lib/search_suggest_users.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/search/lib/search_suggest_users.php
r1606 r1617 22 22 23 23 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") { 25 25 $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") { 27 27 $run_result .= "<h2>" . __gettext("Matching communities:") . "</h2><p>"; 28 28 } else { … … 35 35 */ 36 36 37 $body .= <<< END37 $body = <<< END 38 38 <table class="userlist"> 39 39 <tr> … … 41 41 $i = 1; 42 42 $w = 100; 43 if (sizeof($result ) > 4) {43 if (sizeof($results) > 4) { 44 44 $w = 50; 45 45 }
