Ignore:
Timestamp:
May 11, 2022, 12:14:42 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Removed commended out print_r and echo commands used only for debugging.
File:
1 edited

Legend:

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

    r912 r929  
    2323      if ($DbResult->num_rows > 0)
    2424      {
    25         $Row = $DbResult->fetch_array();
     25        $Row = $DbResult->fetch_assoc();
    2626        if ($Row['Name'] == '') $Author = $Row['Author'];
    2727          else $Author = $Row['Name'];
     
    3333          $Output .= '&nbsp;<a href="?action=del&amp;category='.$Category['Id'].'&amp;id='.$Row['Id'].'">Smazat</a>';
    3434          $Output .= '&nbsp;<a href="?action=edit&amp;category='.$Category['Id'].'&amp;id='.$Row['Id'].'">Upravit</a>';
    35           $Output .= '</div>';
     35          $Output .= '</div>';         
    3636        }
    3737        $Output .= '</div><div class="Content">'.ModuleNews::Cast($this->System->GetModule('News'))->ModifyContent($Row['Content']).'<br />';
     
    6767        'Kategorie: <select name="category">';
    6868      $DbResult = $this->Database->select('NewsCategory', '*');
    69       while ($DbRow = $DbResult->fetch_array())
     69      while ($DbRow = $DbResult->fetch_assoc())
    7070      {
    7171        if ($User->CheckPermission('News', 'Insert', 'Group', $DbRow['Id']))
     
    155155    {
    156156      $DbResult = $this->Database->query('SELECT * FROM `News` WHERE `Id`='.$_GET['id']);
    157       $Row = $DbResult->fetch_array();
     157      $Row = $DbResult->fetch_assoc();
    158158      if (($User->User['Id'] == $Row['User']))
    159159      {
     
    185185      if ($DbResult->num_rows > 0)
    186186      {
    187         $Row = $DbResult->fetch_array();
     187        $Row = $DbResult->fetch_assoc();
    188188        if ($User->User['Id'] == $Row['User'])
    189189        {
     
    206206    {
    207207      $DbResult = $this->Database->query('SELECT * FROM `News` WHERE `Id`='.$_GET['id']);
    208       $Row = $DbResult->fetch_array();
     208      $Row = $DbResult->fetch_assoc();
    209209      if ($User->User['Id'] == $Row['User'])
    210210      {
     
    244244      $DbResult = $this->Database->query('SELECT `News`.*, `User`.`Name` FROM `News` '.
    245245        'LEFT JOIN `User` ON `User`.`Id`=`News`.`User` WHERE `Category`='.$Category['Id'].' ORDER BY `News`.`Id` DESC LIMIT '.($Page * $PerPage).','.$PerPage);
    246       while ($Row = $DbResult->fetch_array())
     246      while ($Row = $DbResult->fetch_assoc())
    247247      {
    248248        if ($Row['Name'] == '') $Author = $Row['Author'];
     
    353353      $Output .= '<form action="?build=1" method="post">';
    354354      $DbResult = $this->Database->select('NewsCategory', '*', '1 ORDER BY `Caption`');
    355       while ($Category = $DbResult->fetch_array())
     355      while ($Category = $DbResult->fetch_assoc())
    356356      {
    357357        $Output .= '<input type="checkbox" name="category'.$Category['Id'].'" />'.$Category['Caption'].'<br />';
     
    403403    $Categories = array();
    404404    $DbResult = $this->Database->select('NewsCategory', '*');
    405     while ($Category = $DbResult->fetch_array())
     405    while ($Category = $DbResult->fetch_assoc())
    406406    {
    407407      $Categories[$Category['Id']] = $Category['Caption'];
Note: See TracChangeset for help on using the changeset viewer.