Plugin Directory

Changeset 949109


Ignore:
Timestamp:
07/15/2014 10:00:04 PM (12 years ago)
Author:
ourvalley
Message:

Quick bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • health-progress/trunk/health-progress.php

    r949106 r949109  
    3939  $start_date = date("M/y", $start_date);
    4040
    41   $widget = '  <div id="smhp_widget_'. $smph_count .'" class="smhp_widget">
    42     <table id="smhp_widget_table_'. $smph_count .'" class="smhp_widget_table">
     41  $widget = '  <div id="smhp_widget_'. $smhp_count .'" class="smhp_widget">
     42    <table id="smhp_widget_table_'. $smhp_count .'" class="smhp_widget_table">
    4343      <tr>
    4444        <th>&nbsp;</th>
     
    5151for ($i = 1; $i <= $num; $i++) {
    5252  $widget .= '<tr>';
    53   $widget .= '  <td>'. __($options['field_'. $i . '_title'], 'smhp_widget_domain') .'</td>';
    54   $widget .= '  <td>'. $options['field_'. $i . '_start'] .' ' . __($options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>';
    55   $widget .= '  <td>'. $instance['field_' . $i . '_now'] . ' ' . __($options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>';
    56   $widget .= '  <td><strong>'. ($options['field_'. $i . '_start'] - $instance['field_' . $i . '_now']) . ' ' . __($options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</strong></td>';
     53  $widget .= '  <td>'. __(@$options['field_'. $i . '_title'], 'smhp_widget_domain') .'</td>';
     54  $widget .= '  <td>'. @$options['field_'. $i . '_start'] . __(@$options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>';
     55  $widget .= '  <td>'. @$instance['field_' . $i . '_now'] . __(@$options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</td>';
     56  $widget .= '  <td><strong>'. (@$options['field_'. $i . '_start'] - @$instance['field_' . $i . '_now']) . __(@$options['field_'. $i . '_unit'], 'smhp_widget_domain') .'</strong></td>';
    5757  $widget .= '</tr>';
    5858}
Note: See TracChangeset for help on using the changeset viewer.