[mythtv-commits] Ticket #11898: Mythweb: Handle empty recommended shows gracefully
MythTV
noreply at mythtv.org
Tue Oct 8 17:51:56 UTC 2013
#11898: Mythweb: Handle empty recommended shows gracefully
----------------------------------------------+------------------------
Reporter: Karl Newman <SiliconFiend@…> | Owner: kormoc
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeb | Version: 0.27-fixes
Severity: medium | Keywords:
Ticket locked: 0 |
----------------------------------------------+------------------------
When using the Mythweb TV "Recommended Programs" page, it throws a SQL
error if your account on the recommendation website has no programs (that
is, if you haven't indicated any preference to any show/actor/genre yet).
The cause is the $extra_query argument to load_all_program_data--the
formatting in modules/tv/recommended.php causes it to send "()" if $query
is empty, which leads to a SQL SELECT clause containing "AND ()" which is
invalid. This patch checks the string length of $query and if it's empty,
sends 'FALSE' instead, which should appropriately load no programs.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11898>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list