mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-27 11:03:28 +01:00
Fixed a bug on the epgs page
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ include 'header.php';
|
||||
<td><?php echo parse_url($rEPG['epg_file'])['host']; ?></td>
|
||||
<td class="text-center"><button type="button" class="btn btn-light btn-xs waves-effect waves-light btn-fixed-min"><?php echo $rEPG['days_keep']; ?></button></td>
|
||||
<td class="text-center"><?php echo $rEPG['last_updated'] ? date('Y-m-d H:i', $rEPG['last_updated']) : $_['never']; ?></td>
|
||||
<td class="text-center"><button type="button" class="btn btn-light btn-xs waves-effect waves-light btn-fixed-min"><?php echo number_format(count(json_decode($rEPG['data'], true)), 0); ?></button></td>
|
||||
<td class="text-center"><button type="button" class="btn btn-light btn-xs waves-effect waves-light btn-fixed-min"><?php echo number_format(count(json_decode($rEPG['data'] ?? '[]', true) ?? []), 0); ?></button></td>
|
||||
<td class="text-center">
|
||||
<?php if (hasPermissions('adv', 'epg_edit')) { ?>
|
||||
<div class="btn-group">
|
||||
|
||||
@@ -3389,9 +3389,7 @@ function getEPGs() {
|
||||
$rReturn = array();
|
||||
$db->query('SELECT * FROM `epg` ORDER BY `id` ASC;');
|
||||
|
||||
if (0 >= $db->num_rows()) {
|
||||
} else {
|
||||
|
||||
if ($db->num_rows() > 0) {
|
||||
foreach ($db->get_rows() as $rRow) {
|
||||
$rReturn[intval($rRow['id'])] = $rRow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user