commit dc5dc88dd1f0d259428a66d32cfdd3056ec31961
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Sat Jun 15 07:45:18 2019 -0500
Add patch for PHP 7.2 on MythBackend.php.
mythtv-php72_fix.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/mythtv-php72_fix.patch b/mythtv-php72_fix.patch
new file mode 100644
index 0000000..fcd64b9
--- /dev/null
+++ b/mythtv-php72_fix.patch
@@ -0,0 +1,13 @@
+diff --git a/mythtv/bindings/php/MythBackend.php b/mythtv/bindings/php/MythBackend.php
+index 54472e9489..d271c8e8a2 100644
+--- a/mythtv/bindings/php/MythBackend.php
++++ b/mythtv/bindings/php/MythBackend.php
+@@ -191,7 +191,7 @@ class MythBackend {
+ // Parse the records, starting at the offset point
+ $row = 0;
+ $col = 0;
+- $count = count($records);
++ $count = is_array($records) ? count($records) : 0;
+ for($i = $offset; $i < $count; $i++) {
+ $rows[$row][$col] = $records[$i];
+ // Every $NUMPROGRAMLINES fields (0 through ($NUMPROGRAMLINES-1)) means