summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorUrban Müller2010-06-01 10:14:30 +0000
committerUrban Müller2010-06-01 10:14:30 +0000
commit5192a82648c584fb946cea62cc14607cc3891b1e (patch)
treed5d6d081b6875346770bdef64b5c7667589e846d /it_html.class
parent2e0427d1bc97fb963a76ddb9daa1d9969f74027f (diff)
downloaditools-5192a82648c584fb946cea62cc14607cc3891b1e.tar.gz
itools-5192a82648c584fb946cea62cc14607cc3891b1e.tar.bz2
itools-5192a82648c584fb946cea62cc14607cc3891b1e.zip
dont mark empty strings
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 50223f4..72507ed 100644
--- a/it_html.class
+++ b/it_html.class
@@ -457,7 +457,7 @@ function Q($string)
if (preg_match('/[<>&"\x00-\x08\x0a-\x0c\x0e-\x1f\x80-\x9f]/', $string)) # WARNING: copy/pasted to _tag()
$string = htmlspecialchars($GLOBALS['it_html']->p['charset'] == "iso-8859-1" ? it_html::latinize($string) : $string);
- return $GLOBALS['debug_q'] ? "<span style='background:#8FF'>$string</span>" : $string;
+ return $GLOBALS['debug_q'] && $string ? "<span style='background:#8FF'>$string</span>" : $string;
}