[geeklog-cvs] geeklog: Make sure the HTML width attribute has an integer value

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jun 13 12:11:15 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3d8864e5cccb
changeset: 7112:3d8864e5cccb
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Jun 13 17:17:36 2009 +0200
description:
Make sure the HTML width attribute has an integer value

diffstat:

 plugins/polls/functions.inc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a5fd4b122d3c -r 3d8864e5cccb plugins/polls/functions.inc
--- a/plugins/polls/functions.inc	Sat Jun 13 15:39:45 2009 +0200
+++ b/plugins/polls/functions.inc	Sat Jun 13 17:17:36 2009 +0200
@@ -864,7 +864,7 @@
                     if ($scale < 120) {
                         $poll->parse('poll_votes', 'votes_num', true );
                     } else {
-                        $width = $percent * $scale;
+                        $width = (int)($percent * $scale);
                         $poll->set_var('bar_width', $width);
                         $poll->parse('poll_votes', 'votes_bar', true);
                     }



More information about the geeklog-cvs mailing list