Skip to content
Snippets Groups Projects
Commit a722a1fe authored by Steven Wittens's avatar Steven Wittens
Browse files

Typoe

parent d41c4f23
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -91,7 +91,9 @@ function poll_help() {
<?php
}
function poll_graph($val, $clrfill = "#000000", $clrempty = "#ffffff") {
function poll_graph($val, $clrfill, $clrempty) {
$clrfill = $clrfill ? $clrfill : "#ffffff";
$clrempty = $clrempty ? $clrempty : "#000000";
$p = round($val * 100);
return "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>" . ($p ? "<td width=\"" . $p . "%\" style=\"background-color: $clrfill;\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>" : "") . ($p < 100 ? "<td style=\"background-color: $clrempty;\" width=\"" . (100 - $p) . "%\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>":"") . "</tr></table>";
}
......
......@@ -91,7 +91,9 @@ function poll_help() {
<?php
}
function poll_graph($val, $clrfill = "#000000", $clrempty = "#ffffff") {
function poll_graph($val, $clrfill, $clrempty) {
$clrfill = $clrfill ? $clrfill : "#ffffff";
$clrempty = $clrempty ? $clrempty : "#000000";
$p = round($val * 100);
return "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>" . ($p ? "<td width=\"" . $p . "%\" style=\"background-color: $clrfill;\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>" : "") . ($p < 100 ? "<td style=\"background-color: $clrempty;\" width=\"" . (100 - $p) . "%\"><span style=\"font-size: 4pt;\">&nbsp;</span></td>":"") . "</tr></table>";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment