Fix mark as read behaviour
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 13 Jan 2007 15:02:59 +0000 (15:02 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 13 Jan 2007 15:02:59 +0000 (15:02 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1329 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/banana/banana.inc.php

index e3b687b..3424c93 100644 (file)
@@ -194,8 +194,9 @@ class PlatalBanana extends Banana
                              SET  banana_last = FROM_UNIXTIME({?})
                            WHERE  user_id={?}",
                          $time, S::i('uid'));
-            if (!is_null(Banana::$group)) {
+            if (!is_null(Banana::$group) && !$maj) {
                 $this->loadSpool(Banana::$group);
+                Banana::$spool->markAllAsRead();
             }
         }