From 571d20d5839198d22d844a4663f808b3d677432e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Mon, 30 Jul 2012 23:27:12 +0200 Subject: [PATCH] Wrong behaviour --- htdocs/core/lib/functions.lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 9bd9ae1c3ae..625b46d4749 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1822,8 +1822,10 @@ function img_view($alt = 'default', $float = 0, $other = '') global $conf, $langs; if ($alt == 'default') $alt = $langs->trans('View'); + + $options = ($float ? 'style="float: right" ' : '').$other; - return img_picto($alt, 'view.png', ($float ? 'style="float: right"' : $other)); + return img_picto($alt, 'view.png', $options); } /**