Ticket #1028: mouseover_details_8605.diff

File mouseover_details_8605.diff, 1.6 KB (added by mythtv@…, 20 years ago)

simple patch to fix this.

  • mythweb/themes/default/tv/detail.php

     
    186186            echo "    <div id=\"conflicting_shows\" class=\"clearfix\">\n        ",
    187187                 t('Possible conflicts with this show'),
    188188                 ":\n        <table>\n        ";
     189
     190            // A program id counter for popup info
     191                if (show_popup_info) {
     192                    $program_id_counter = 1;
     193                }
     194
    189195            foreach ($conflicting_shows as $show) {
    190196            // Set the class to be used to display the recording status character
    191197                $rec_class = implode(' ', array(recstatus_class($show), $show->recstatus));
     
    217223                        break;
    218224                }
    219225
    220             // A program id counter for popup info
    221                 if (show_popup_info) {
    222                     $program_id_counter = 0;
    223                     $program_id_counter++;
    224                 }
    225 
    226226            // Print the content
    227227        ?><tr class="<?php echo $class ?>">
    228228            <td class="<?php echo $show->class ?>"><?php
     
    244244            ?></td>
    245245                <td><a href="<?php echo root ?>tv/channel/<?php echo $show->channel->chanid, '/', $show->starttime ?>"><?php echo $show->channel->channum, ' - ', $show->channel->name ?></a></td>
    246246        </tr><?php
    247                 $row++;
     247                $program_id_counter++;
    248248            }
    249249            echo "\n        </table>\n    </div>";
    250250        }