@@ -244,10 +244,10 @@ discard block |
||
244 | 244 | if ($result) { |
245 | 245 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
246 | 246 | $this->categoryName[$row['id']] = $row; |
247 | - $this->categories[] =& $this->categoryName[$row['id']]; |
|
248 | - $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
|
249 | - $this->owner[$row['id']] =& $row['user_id']; |
|
250 | - $this->moderators[$row['id']] =& $row['group_id']; |
|
247 | + $this->categories[] = & $this->categoryName[$row['id']]; |
|
248 | + $this->children[$row['parent_id']][$row['id']] = & $this->categoryName[$row['id']]; |
|
249 | + $this->owner[$row['id']] = & $row['user_id']; |
|
250 | + $this->moderators[$row['id']] = & $row['group_id']; |
|
251 | 251 | } |
252 | 252 | } |
253 | 253 | |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | $result = $this->_config->getDb()->query($query); |
355 | 355 | |
356 | 356 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
357 | - $categories[] = (int) $row['id']; |
|
357 | + $categories[] = (int)$row['id']; |
|
358 | 358 | } |
359 | 359 | |
360 | 360 | return $categories; |
@@ -674,7 +674,7 @@ discard block |
||
674 | 674 | $open = 0; |
675 | 675 | $this->expandAll(); |
676 | 676 | |
677 | - for ($y = 0;$y < $this->height(); $y = $this->getNextLineTree($y)) { |
|
677 | + for ($y = 0; $y < $this->height(); $y = $this->getNextLineTree($y)) { |
|
678 | 678 | list($hasChild, $categoryName, $parent, $description) = $this->getLineDisplay($y); |
679 | 679 | $level = $this->treeTab[$y]['level']; |
680 | 680 | $levelDiff = $open - $level; |
@@ -949,7 +949,7 @@ discard block |
||
949 | 949 | while ($row = $this->_config->getDb()->fetchObject($result)) { |
950 | 950 | $categories[$row->category_id] = array( |
951 | 951 | 'category_id' => $row->category_id, |
952 | - 'category_lang' => $row->category_lang, ); |
|
952 | + 'category_lang' => $row->category_lang,); |
|
953 | 953 | } |
954 | 954 | |
955 | 955 | return $categories; |
@@ -1252,7 +1252,7 @@ discard block |
||
1252 | 1252 | array('faqcategories' => 'parent_id'), |
1253 | 1253 | array('faqcategoryrelations' => 'category_id'), |
1254 | 1254 | array('faqcategory_group' => 'category_id'), |
1255 | - array('faqcategory_user' => 'category_id'), ); |
|
1255 | + array('faqcategory_user' => 'category_id'),); |
|
1256 | 1256 | |
1257 | 1257 | $result = true; |
1258 | 1258 | foreach ($tables as $pair) { |
@@ -1446,7 +1446,7 @@ discard block |
||
1446 | 1446 | if ($lang == $selected_lang) { |
1447 | 1447 | $output .= ' selected="selected"'; |
1448 | 1448 | } |
1449 | - $output .= '>'.$langname."</option>\n"; |
|
1449 | + $output .= '>'.$langname."</option>\n"; |
|
1450 | 1450 | } |
1451 | 1451 | } |
1452 | 1452 | |
@@ -1645,7 +1645,7 @@ discard block |
||
1645 | 1645 | |
1646 | 1646 | if ($this->_config->getDb()->numRows($result) > 0) { |
1647 | 1647 | while ($row = $this->_config->getDb()->fetchObject($result)) { |
1648 | - $numRecordsByCat[$row->category_id] = (int) $row->num_records; |
|
1648 | + $numRecordsByCat[$row->category_id] = (int)$row->num_records; |
|
1649 | 1649 | } |
1650 | 1650 | } |
1651 | 1651 |
@@ -295,7 +295,7 @@ |
||
295 | 295 | $result = $this->config->getDb()->query($query); |
296 | 296 | if ($this->config->getDb()->numRows($result) > 0) { |
297 | 297 | while ($row = $this->config->getDb()->fetchObject($result)) { |
298 | - $num[$row->id] = (int) $row->num_comments; |
|
298 | + $num[$row->id] = (int)$row->num_comments; |
|
299 | 299 | } |
300 | 300 | } |
301 | 301 |
@@ -210,11 +210,11 @@ discard block |
||
210 | 210 | $fdTable.'.active AS active', |
211 | 211 | $fdTable.'.thema AS thema', |
212 | 212 | $fdTable.'.content AS content', |
213 | - $fdTable.'.updated AS updated', )) |
|
213 | + $fdTable.'.updated AS updated',)) |
|
214 | 214 | ->setJoinedTable($fcrTable) |
215 | 215 | ->setJoinedColumns(array( |
216 | 216 | $fdTable.'.id = '.$fcrTable.'.record_id', |
217 | - $fdTable.'.lang = '.$fcrTable.'.record_lang', )); |
|
217 | + $fdTable.'.lang = '.$fcrTable.'.record_lang',)); |
|
218 | 218 | |
219 | 219 | if (is_numeric($searchTerm)) { |
220 | 220 | $search->setMatchingColumns(array($fdTable.'.solution_id')); |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $faqsFound = []; |
231 | 231 | |
232 | 232 | while ($row = $faqConfig->getDb()->fetchObject($result)) { |
233 | - if ($searchCat != 0 && $searchCat != (int) $row->category_id) { |
|
233 | + if ($searchCat != 0 && $searchCat != (int)$row->category_id) { |
|
234 | 234 | continue; |
235 | 235 | } |
236 | 236 | |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | <input type="checkbox" lang="<?php echo $record['lang'] ?>" |
406 | 406 | onclick="saveStatus(<?php echo $cid.', ['.$record['id'].']' ?>, 'sticky', '<?php echo $user->getCsrfTokenFromSession() ?>');" |
407 | 407 | id="sticky_record_<?php echo $cid.'_'.$record['id'] ?>" |
408 | - <?php echo($record['sticky'] ? 'checked' : ' ') ?>> |
|
408 | + <?php echo($record['sticky'] ? 'checked' : ' ') ?>> |
|
409 | 409 | </label> |
410 | 410 | </td> |
411 | 411 | <td> |