Changeset 929 for trunk/Modules/News/NewsPage.php
- Timestamp:
- May 11, 2022, 12:14:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/NewsPage.php
r912 r929 23 23 if ($DbResult->num_rows > 0) 24 24 { 25 $Row = $DbResult->fetch_a rray();25 $Row = $DbResult->fetch_assoc(); 26 26 if ($Row['Name'] == '') $Author = $Row['Author']; 27 27 else $Author = $Row['Name']; … … 33 33 $Output .= ' <a href="?action=del&category='.$Category['Id'].'&id='.$Row['Id'].'">Smazat</a>'; 34 34 $Output .= ' <a href="?action=edit&category='.$Category['Id'].'&id='.$Row['Id'].'">Upravit</a>'; 35 $Output .= '</div>'; 35 $Output .= '</div>'; 36 36 } 37 37 $Output .= '</div><div class="Content">'.ModuleNews::Cast($this->System->GetModule('News'))->ModifyContent($Row['Content']).'<br />'; … … 67 67 'Kategorie: <select name="category">'; 68 68 $DbResult = $this->Database->select('NewsCategory', '*'); 69 while ($DbRow = $DbResult->fetch_a rray())69 while ($DbRow = $DbResult->fetch_assoc()) 70 70 { 71 71 if ($User->CheckPermission('News', 'Insert', 'Group', $DbRow['Id'])) … … 155 155 { 156 156 $DbResult = $this->Database->query('SELECT * FROM `News` WHERE `Id`='.$_GET['id']); 157 $Row = $DbResult->fetch_a rray();157 $Row = $DbResult->fetch_assoc(); 158 158 if (($User->User['Id'] == $Row['User'])) 159 159 { … … 185 185 if ($DbResult->num_rows > 0) 186 186 { 187 $Row = $DbResult->fetch_a rray();187 $Row = $DbResult->fetch_assoc(); 188 188 if ($User->User['Id'] == $Row['User']) 189 189 { … … 206 206 { 207 207 $DbResult = $this->Database->query('SELECT * FROM `News` WHERE `Id`='.$_GET['id']); 208 $Row = $DbResult->fetch_a rray();208 $Row = $DbResult->fetch_assoc(); 209 209 if ($User->User['Id'] == $Row['User']) 210 210 { … … 244 244 $DbResult = $this->Database->query('SELECT `News`.*, `User`.`Name` FROM `News` '. 245 245 '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_a rray())246 while ($Row = $DbResult->fetch_assoc()) 247 247 { 248 248 if ($Row['Name'] == '') $Author = $Row['Author']; … … 353 353 $Output .= '<form action="?build=1" method="post">'; 354 354 $DbResult = $this->Database->select('NewsCategory', '*', '1 ORDER BY `Caption`'); 355 while ($Category = $DbResult->fetch_a rray())355 while ($Category = $DbResult->fetch_assoc()) 356 356 { 357 357 $Output .= '<input type="checkbox" name="category'.$Category['Id'].'" />'.$Category['Caption'].'<br />'; … … 403 403 $Categories = array(); 404 404 $DbResult = $this->Database->select('NewsCategory', '*'); 405 while ($Category = $DbResult->fetch_a rray())405 while ($Category = $DbResult->fetch_assoc()) 406 406 { 407 407 $Categories[$Category['Id']] = $Category['Caption'];
Note:
See TracChangeset
for help on using the changeset viewer.