Merge pull request #5753 from MrPetovan/bug/5752-fix-warning-count
Fix count being called on the wrong variable in mod/notes
This commit is contained in:
commit
aa2ab3d0e7
|
@ -70,8 +70,11 @@ function notes_content(App $a, $update = false)
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
|
||||||
if (DBA::isResult($r)) {
|
if (DBA::isResult($r)) {
|
||||||
$count = count($r);
|
$notes = DBA::toArray($r);
|
||||||
$o .= conversation($a, DBA::toArray($r), 'notes', $update);
|
|
||||||
|
$count = count($notes);
|
||||||
|
|
||||||
|
$o .= conversation($a, $notes, 'notes', $update);
|
||||||
}
|
}
|
||||||
|
|
||||||
$o .= alt_pager($a, $count);
|
$o .= alt_pager($a, $count);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user