Skip to content

Commit 664dc17

Browse files
author
Bill Meek
committed
Removes error messages from "Recorded Programs" page
In Ubuntu 18.04, the following prints for lines 188 (and 189 for disk_used) on the above screen: Warning at /var/www/mythweb/modules/tv/recorded.php, line 188: !!NoTrans: Use of undefined constant disk_size - assumed 'disk_size' (this will throw an Error in a future version of PHP)!!
1 parent 6976c80 commit 664dc17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/tv/recorded.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@
179179
if (function_exists('gmp_mul')) {
180180
// GMP functions should work better with 64 bit numbers.
181181
$size = gmp_mul('1024', $size);
182-
define(disk_size, gmp_strval($size));
182+
define('disk_size', gmp_strval($size));
183183
$size = gmp_mul('1024', $used);
184-
define(disk_used, gmp_strval($size));
184+
define('disk_used', gmp_strval($size));
185185
}
186186
else {
187187
// This is inaccurate, but it's the best we can get without GMP.
188-
define(disk_size, ($size * 1024));
189-
define(disk_used, ($used * 1024));
188+
define('disk_size', ($size * 1024));
189+
define('disk_used', ($used * 1024));
190190
}
191191

192192
// Load the class for this page

0 commit comments

Comments
 (0)