function poll_print_results()
 {
     $this->poll_get_results($results);
     foreach ($results as $option => $count) {
         $img = $img == 0 ? 1 : 0;
         $highest = !$highest ? $count : $highest;
         $imgwidth = round($this->config->maxwidth / $highest * $count);
         $imgwidth = $imgwidth == 0 ? 1 : $imgwidth;
         $this->content->text .= "<tr><td>{$option} ({$count})<br />" . poll_get_graphbar($img, $imgwidth) . '</td></tr>';
     }
 }
 public function poll_print_results()
 {
     $this->poll_get_results($results);
     $highest = 1;
     foreach ($results as $option => $count) {
         if ($count > $highest) {
             $highest = $count;
         }
     }
     $maxwidth = !empty($this->config->maxwidth) ? $this->config->maxwidth : 150;
     foreach ($results as $option => $count) {
         $img = isset($img) && $img == 0 ? 1 : 0;
         $imgwidth = round($count / $highest * $maxwidth);
         $this->content->text .= "<tr><td>{$option} ({$count})<br />" . poll_get_graphbar($img, $imgwidth) . '</td></tr>';
     }
 }