Commit 19db449f authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4720 (Only show tooltips when necessary)

parent 2fc48e5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1463,7 +1463,7 @@ function symbol_truncator($param, $type, $tooltip_if_truncated = null)
                break;
        }

        if ($tooltip) {
        if (($tooltip) && (preg_replace('#\s+#', ' ', html_entity_decode(strip_tags($truncated), ENT_QUOTES, get_charset()))) != preg_replace('#\s+#', ' ', html_entity_decode(strip_tags($html), ENT_QUOTES, get_charset()))) {
            if (!is_null($tooltip_if_truncated)) {
                $tif = (is_object($tooltip_if_truncated) ? $tooltip_if_truncated->evaluate() : $tooltip_if_truncated);
                if (strpos($tif, $html) !== false) {