diff --git a/lib/weblib.php b/lib/weblib.php
index a1f73107543..1fcf8177c72 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -4539,10 +4539,11 @@ class tabobject {
var $text;
/// A constructor just because I like constructors
- function tabobject ($id, $link='', $text='') {
+ function tabobject ($id, $link='', $text='', $title='') {
$this->id = $id;
$this->link = $link;
$this->text = $text;
+ $this->title = $title ? $title : $text;
}
@@ -4557,7 +4558,7 @@ class tabobject {
if ($inactive || $activetwo || $selected) {
$astr .= $this->text;
} else {
- $astr .= ''.$this->text.'';
+ $astr .= ''.$this->text.'';
}
/// There's an IE bug with background images in tags