diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php
index fbf86e7c23..f7b7a50753 100644
--- a/phpgwapi/inc/class.html.inc.php
+++ b/phpgwapi/inc/class.html.inc.php
@@ -1058,7 +1058,7 @@ class html
$extra_styles = "display: inline-block; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$url',sizingMethod='image'); width: 1px; height: 1px;";
if (strstr($options,'style="'))
{
- $options = str_replace('style="','style="'.$extra_styles);
+ $options = str_replace('style="','style="'.$extra_styles, $options);
}
else
{