Ignore:
Timestamp:
Jun 30, 2025, 3:24:41 PM (14 hours ago)
Author:
chronos
Message:
  • Fixed: Autocreate missing DocumentSequenceNumber records for new years.
  • Fixed: Wrong page index selection.
  • Fixed: RSS feed formatting variable reference.
  • Fixed: Do not parse RouterOS signal import if not connected to the remote host.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/NewsPage.php

    r964 r976  
    252252      $RowTotal = $DbResult->fetch_array();
    253253      $PageMax = $RowTotal[0];
    254       if (array_key_exists('page', $_GET)) $Page = $_GET['page'];
    255         else $Page = 0; //round($PageMax/$PerPage);
     254      if (array_key_exists('page', $_GET) and is_numeric($_GET['page'])) $Page = $_GET['page'] * 1;
     255        else $Page = 0;
    256256      $Output .= '<strong>Seznam aktualit kategorie '.$Category['Caption'].':</strong><div style="font-size: small;">';
    257257      $Output .= PagesList('?category='.$Category['Id'].'&amp;page=', $Page, $PageMax, $PerPage);
     
    400400  {
    401401    $this->RawPage = true;
    402     $this->FormatHTML = false;
     402    Core::Cast($this->System)->BaseView->FormatHTML = false;
    403403    Header('Content-Type: text/xml');
    404404
     
    424424        if (strlen($Where) > 2) $Where = substr($Where, 2);
    425425          else $Where = 1;
    426       } else $Where = 1;     
     426      } else $Where = 1;
    427427    } else $Where = 1;
    428428
Note: See TracChangeset for help on using the changeset viewer.