Fixed notice.

This commit is contained in:
vyshane
2007-01-10 06:11:31 +00:00
parent a202dfa034
commit d72fd6950b
+7 -5
View File
@@ -55,14 +55,16 @@ class block_mnet_hosts extends block_list {
$icon = "<img src=\"$CFG->pixpath/i/mnethost.png\"".
" class=\"icon\" alt=\"".get_string('server', 'block_mnet_hosts')."\" />";
foreach ($hosts as $host) {
$this->content->icons[]=$icon;
$this->content->items[]="<a title=\"" .s($host->name).
"\" href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$host->id}\">" . s($host->name) ."</a>";
if ($hosts) {
foreach ($hosts as $host) {
$this->content->icons[]=$icon;
$this->content->items[]="<a title=\"" .s($host->name).
"\" href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$host->id}\">" . s($host->name) ."</a>";
}
}
return $this->content;
}
}
?>
?>