Browse Source

Merge pull request #5753 from MrPetovan/bug/5752-fix-warning-count

Fix count being called on the wrong variable in mod/notes
pull/5756/head
Michael Vogel 2 years ago
committed by GitHub
parent
commit
aa2ab3d0e7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      mod/notes.php

+ 5
- 2
mod/notes.php View File

@ -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);


Loading…
Cancel
Save