Skip to content

Commit abd4e19

Browse files
committed
Fix #708
1 parent 18c9474 commit abd4e19

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

meta/AggregationValue.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ public function __construct($id, $mode, \Doku_Renderer $renderer, SearchConfig $
3131
/**
3232
* Create the output on the renderer
3333
*
34-
* @param int $show_not_found Whether to display the default text for no records
34+
* @param int $showNotFound Whether to display the default text for no records
3535
*/
36-
public function render($show_not_found = 0)
36+
public function render($showNotFound = 0)
3737
{
3838
// Check that we actually got a result
39-
if ($this->resultCount) {
40-
$this->renderValue($this->result[0]);
39+
if ($this->searchConfig->getCount()) {
40+
$this->renderValue($this->searchConfig->getRows()[0]);
4141
// only one result
42-
} elseif ($show_not_found) {
42+
} elseif ($showNotFound) {
4343
$this->renderer->cdata($this->helper->getLang('none'));
4444
}
4545
}

0 commit comments

Comments
 (0)