Skip to content

Commit

Permalink
Fix #708
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Feb 16, 2024
1 parent 18c9474 commit abd4e19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions meta/AggregationValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public function __construct($id, $mode, \Doku_Renderer $renderer, SearchConfig $
/**
* Create the output on the renderer
*
* @param int $show_not_found Whether to display the default text for no records
* @param int $showNotFound Whether to display the default text for no records
*/
public function render($show_not_found = 0)
public function render($showNotFound = 0)
{
// Check that we actually got a result
if ($this->resultCount) {
$this->renderValue($this->result[0]);
if ($this->searchConfig->getCount()) {
$this->renderValue($this->searchConfig->getRows()[0]);
// only one result
} elseif ($show_not_found) {
} elseif ($showNotFound) {
$this->renderer->cdata($this->helper->getLang('none'));
}
}
Expand Down

0 comments on commit abd4e19

Please sign in to comment.