Fixed a bug on the epgs page

This commit is contained in:
Divarion-D
2025-08-08 22:08:09 +03:00
parent c9c77ec438
commit ea41309bdb
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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">
+1 -3
View File
@@ -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;
}