https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb9bf4
)
Fix count being called on the wrong variable in mod/notes
author
Hypolite Petovan
<mrpetovan@gmail.com>
Sun, 9 Sep 2018 22:33:14 +0000
(18:33 -0400)
committer
Hypolite Petovan
<mrpetovan@gmail.com>
Sun, 9 Sep 2018 22:34:05 +0000
(18:34 -0400)
mod/notes.php
patch
|
blob
|
history
diff --git
a/mod/notes.php
b/mod/notes.php
index
68a870e
..
01f2838
100644
(file)
--- a/
mod/notes.php
+++ b/
mod/notes.php
@@
-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);