@@ -134,7 +134,7 @@ |
||
| 134 | 134 | </tr> |
| 135 | 135 | <tr> |
| 136 | 136 | <td><?php echo $PMF_LANG['ad_stat_vpd'] ?>:</td> |
| 137 | - <td><?php echo ($danz != 0) ? round(($vanz / $danz), 2) : 0 ?></td> |
|
| 137 | + <td><?php echo ($danz != 0) ? round(($vanz/$danz), 2) : 0 ?></td> |
|
| 138 | 138 | </tr> |
| 139 | 139 | <tr> |
| 140 | 140 | <td><?php echo $PMF_LANG['ad_stat_fien'] ?>:</td> |
@@ -623,12 +623,15 @@ discard block |
||
| 623 | 623 | <input type="radio" name="active" value="no" |
| 624 | 624 | <?php if (isset($sul)) { echo $sul; } ?>> |
| 625 | 625 | <?php echo $PMF_LANG['ad_gen_no'] ?> |
| 626 | - <?php else: ?> |
|
| 626 | + <?php else { |
|
| 627 | + : ?> |
|
| 627 | 628 | <br> |
| 628 | 629 | <input type="radio" name="active" value="no" checked> |
| 629 | 630 | <?php echo $PMF_LANG['ad_gen_no'] ?> |
| 630 | 631 | |
| 631 | - <?php endif; ?> |
|
| 632 | + <?php endif; |
|
| 633 | +} |
|
| 634 | +?> |
|
| 632 | 635 | </label> |
| 633 | 636 | </div> |
| 634 | 637 | </div> |
@@ -689,9 +692,12 @@ discard block |
||
| 689 | 692 | </div> |
| 690 | 693 | </div> |
| 691 | 694 | </div> |
| 692 | - <?php else: ?> |
|
| 695 | + <?php else { |
|
| 696 | + : ?> |
|
| 693 | 697 | <input type="hidden" name="grouppermission" value="all"> |
| 694 | - <?php endif; ?> |
|
| 698 | + <?php endif; |
|
| 699 | +} |
|
| 700 | +?> |
|
| 695 | 701 | <div class="panel-heading"> |
| 696 | 702 | <?php echo $PMF_LANG['ad_entry_userpermission']; ?> |
| 697 | 703 | </div> |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | 'writeNumberOfArticles' => $plr->getMsg('plmsgHomeArticlesOnline', $faq->getNumberOfRecords($LANGCODE)), |
| 65 | 65 | 'writeSendAdress' => '?'.$sids.'action=search', |
| 66 | 66 | 'searchBox' => $PMF_LANG['msgSearch'], |
| 67 | - 'categoryId' => ($cat === 0) ? '%' : (int) $cat, |
|
| 67 | + 'categoryId' => ($cat === 0) ? '%' : (int)$cat, |
|
| 68 | 68 | 'msgSearch' => sprintf( |
| 69 | 69 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
| 70 | 70 | $faqSystem->getSystemUri($faqConfig), |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | } |
| 63 | 63 | } else { |
| 64 | 64 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
| 65 | - if (! $user instanceof PMF_User_CurrentUser) { |
|
| 65 | + if (!$user instanceof PMF_User_CurrentUser) { |
|
| 66 | 66 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | $errorMessage = 'The uploaded file exceeds the upload_max_filesize directive in php.ini.'; |
| 124 | 124 | break; |
| 125 | 125 | case 2: |
| 126 | - $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the ' . |
|
| 126 | + $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the '. |
|
| 127 | 127 | 'HTML form.'; |
| 128 | 128 | break; |
| 129 | 129 | case 3: |
@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | $confPerPage = $this->_config->get('records.numberOfRecordsPerPage'); |
| 209 | 209 | $numOfResults = $resultSet->getNumberOfResults(); |
| 210 | 210 | |
| 211 | - $totalPages = ceil($numOfResults / $confPerPage); |
|
| 212 | - $lastPage = $currentPage * $confPerPage; |
|
| 211 | + $totalPages = ceil($numOfResults/$confPerPage); |
|
| 212 | + $lastPage = $currentPage*$confPerPage; |
|
| 213 | 213 | $firstPage = $lastPage - $confPerPage; |
| 214 | 214 | if ($lastPage > $numOfResults) { |
| 215 | 215 | $lastPage = $numOfResults; |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | $oLink->itemTitle = $oLink->tooltip = $result->question; |
| 287 | 287 | |
| 288 | 288 | $html .= '<li>'; |
| 289 | - $html .= $this->renderScore($result->score * 33); |
|
| 289 | + $html .= $this->renderScore($result->score*33); |
|
| 290 | 290 | $html .= sprintf('<strong>%s</strong>: %s<br />', |
| 291 | 291 | $categoryInfo[0]['name'], |
| 292 | 292 | $oLink->toHtmlAnchor() |