summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/controllers/search_ctrl.php4
-rw-r--r--includes/functions/functions_print_lists.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/includes/controllers/search_ctrl.php b/includes/controllers/search_ctrl.php
index fbf2fffa40..34eadec4ae 100644
--- a/includes/controllers/search_ctrl.php
+++ b/includes/controllers/search_ctrl.php
@@ -854,7 +854,9 @@ class SearchController extends BaseController {
if (!$displayed_once) {
if (!$no_results_found) {
$no_results_found = true;
- print "<tr><td class=\"list_label\" colspan=\"2\" width=\"100%\"><img src=\"".$WT_IMAGES["indis"]."\" border=\"0\" width=\"25\" alt=\"\" /> ".i18n::translate('People')."</td></tr>";
+ print "<tr><td class=\"list_label\" colspan=\"2\" width=\"100%\">";
+ if (isset($WT_IMAGES["indis"])) echo "<img src=\"".$WT_IMAGES["indis"]."\" border=\"0\" width=\"25\" alt=\"\" /> ";
+ print i18n::translate('People')."</td></tr>";
print "<tr><td><table id=\"multiResultsInTbl\" align=\"center\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" ><tr>";
}
$displayed_once = true;
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php
index 1065053066..d921e476d2 100644
--- a/includes/functions/functions_print_lists.php
+++ b/includes/functions/functions_print_lists.php
@@ -72,7 +72,7 @@ function print_indi_table($datalist, $legend="", $option="") {
$legend=translate_fact(substr($option, 0, 4))." @ ".$legend;
}
if ($legend == "") $legend = i18n::translate('Individuals');
- $legend = "<img src=\"".$WT_IMAGES["indis"]."\" alt=\"\" align=\"middle\" /> ".$legend;
+ if (isset($WT_IMAGES["indis"])) $legend = "<img src=\"".$WT_IMAGES["indis"]."\" alt=\"\" align=\"middle\" /> ".$legend;
echo "<fieldset><legend>", $legend, "</legend>";
$table_id = "ID".floor(microtime()*1000000); // sorttable requires a unique ID
echo '<div id="', $table_id, '-table" class="center">';