Fix count being called on the wrong variable in mod/notes

pull/5753/head
Hypolite Petovan 2018-09-09 18:33:14 -04:00
rodzic dcb9bf4136
commit e461474290
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -70,8 +70,11 @@ function notes_content(App $a, $update = false)
$count = 0;
if (DBA::isResult($r)) {
$count = count($r);
$o .= conversation($a, DBA::toArray($r), 'notes', $update);
$notes = DBA::toArray($r);
$count = count($notes);
$o .= conversation($a, $notes, 'notes', $update);
}
$o .= alt_pager($a, $count);