projects
/
banana.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix warnings
[banana.git]
/
banana
/
spool.inc.php
diff --git
a/banana/spool.inc.php
b/banana/spool.inc.php
index
b6355b8
..
04c6f7c
100644
(file)
--- a/
banana/spool.inc.php
+++ b/
banana/spool.inc.php
@@
-344,7
+344,7
@@
class BananaSpool
*/
public function &getTree($id)
{
*/
public function &getTree($id)
{
- return BananaTree::build($id)->
data
;
+ return BananaTree::build($id)->
show()
;
}
/** Mark the given id as read
}
/** Mark the given id as read
@@
-352,12
+352,13
@@
class BananaSpool
*/
public function markAsRead($id)
{
*/
public function markAsRead($id)
{
- if (!$this->overview[$id]->isread) {
- $this->overview[$id]->isread = true;
+ $overview =& $this->overview[$id];
+ if (!$overview->isread) {
+ $overview->isread = true;
$this->unreadnb--;
$this->unreadnb--;
- while (
isset($id
)) {
- $
this->overview[$id]
->descunread--;
- $
id = $this->overview[$id]
->parent;
+ while (
!is_null($overview
)) {
+ $
overview
->descunread--;
+ $
overview =& $overview
->parent;
}
}
}
}
}
}