Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#10790 closed Bug Report - General (fixed)

Uninitialized arrays in recorded.php

Reported by: karog <mythtv@…> Owned by: Rob Smith
Priority: minor Milestone: 0.27
Component: Plugin - MythWeb Version: 0.25-fixes
Severity: low Keywords:
Cc: Ticket locked: no

Description

In both /mythweb/modules/tv/tmpl/default/recorded.php and /mythweb/modules/tv/tmpl/lite/recorded.php, the arrays $row_count and $row_section are uninitialized causing a php error that then generates a javascript error but does not generally manifest in the actual page display. This can be easily fixed in both files by changing:

    $row     = 0;
    $section = -1;

to

    $row     = 0;
    $section = -1;
    $row_count = array();
    $row_section = array();

Change History (2)

comment:1 Changed 11 years ago by Rob Smith <kormoc@…>

Resolution: fixed
Status: newclosed

In 567cc78d54c1cb88713c475dfc047ec9ca1ad8cf/mythweb:

Fixes #10790, this fixes an error with using uninitialized arrays

comment:2 Changed 11 years ago by Raymond Wagner

Milestone: unknown0.27
Note: See TracTickets for help on using tickets.