summaryrefslogtreecommitdiff
path: root/www-apps/mythweb/mythweb-0.28.1-php-7.2.patch
blob: ba8305d1fe39728386a9779ae74fdf544172edd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- mythweb/modules/tv/recorded.php	2019-01-08 20:32:48.755707414 +0000
+++ mythweb/modules/tv/recorded.php	2019-01-08 20:33:16.975573210 +0000
@@ -179,14 +179,14 @@
     if (function_exists('gmp_mul')) {
     // GMP functions should work better with 64 bit numbers.
         $size = gmp_mul('1024', $size);
-        define(disk_size, gmp_strval($size));
+        define('disk_size', gmp_strval($size));
         $size = gmp_mul('1024', $used);
-        define(disk_used, gmp_strval($size));
+        define('disk_used', gmp_strval($size));
     }
     else {
     // This is inaccurate, but it's the best we can get without GMP.
-        define(disk_size, ($size * 1024));
-        define(disk_used, ($used * 1024));
+        define('disk_size', ($size * 1024));
+        define('disk_used', ($used * 1024));
     }
 
 // Load the class for this page
--- mythweb/modules/tv/tmpl/default/detail.php	2019-01-08 21:15:23.911010631 +0000
+++ mythweb/modules/tv/tmpl/default/detail.php	2019-01-08 21:15:37.838792895 +0000
@@ -830,7 +830,7 @@
             </div>
             <div class="x-jobs">
 <?php
-        if (count($program->jobs_possible)) {
+        if (is_array($program->jobs_possible) && count($program->jobs_possible)) {
             echo t('Queue a job'), ':',
                  '            <ul class="x-queue">';
             foreach ($program->jobs_possible as $id => $job) {
@@ -842,7 +842,7 @@
             }
             echo '            </ul>';
         }
-        if (count($program->jobs['queue'])) {
+        if (is_array($program->jobs['queue']) && count($program->jobs['queue'])) {
             echo t('Queued jobs'), ':',
                  '            <ul class="-queued">';
             foreach ($program->jobs['queue'] as $job) {
@@ -856,7 +856,7 @@
             }
             echo '            </ul>';
         }
-        if (count($program->jobs['done'])) {
+        if (is_array($program->jobs['done']) && count($program->jobs['done'])) {
             echo t('Recently completed jobs'), ':',
                  '            <ul class="-done">';
             foreach ($program->jobs['done'] as $job) {