summarylogtreecommitdiffstats
path: root/003-mythcount.patch
diff options
context:
space:
mode:
Diffstat (limited to '003-mythcount.patch')
-rw-r--r--003-mythcount.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/003-mythcount.patch b/003-mythcount.patch
new file mode 100644
index 000000000000..599384a1cbb1
--- /dev/null
+++ b/003-mythcount.patch
@@ -0,0 +1,23 @@
+diff --git a/bindings/php/MythBackend.php b/bindings/php/MythBackend.php
+index 54472e9489..9360e8801e 100644
+--- a/bindings/php/MythBackend.php
++++ b/bindings/php/MythBackend.php
+@@ -42,7 +42,7 @@ class MythBackend {
+ ."need to check your mythweb.conf file or re-run mythtv-setup",
+ FATAL);
+ }
+-
++
+ if (!isset($Backends[$host]))
+ $Backends[$host] = array();
+
+@@ -191,7 +191,8 @@ class MythBackend {
+ // Parse the records, starting at the offset point
+ $row = 0;
+ $col = 0;
+- $count = count($records);
++ if ($records) $count = count($records);
++ else $count = 0;
+ for($i = $offset; $i < $count; $i++) {
+ $rows[$row][$col] = $records[$i];
+ // Every $NUMPROGRAMLINES fields (0 through ($NUMPROGRAMLINES-1)) means