From: Marcel Werk Date: Tue, 22 Apr 2014 22:14:05 +0000 (+0200) Subject: Fixed word wrap issue X-Git-Tag: 2.0.6~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05b64845c4d2026ace77f6e467f14c82cf3cf1d2;p=GitHub%2FWoltLab%2FWCF.git Fixed word wrap issue --- diff --git a/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php index b062761785..f820233679 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/TableWordwrapModifierTemplatePlugin.class.php @@ -29,7 +29,7 @@ class TableWordwrapModifierTemplatePlugin implements IModifierTemplatePlugin { $substrings = explode(' ', $string); foreach ($substrings as $substring) { - if (!empty($result)) $result .= ' '; + if ($result !== '') $result .= ' '; $length = mb_strlen($substring); if ($length > $width) {