aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php2
-rw-r--r--mod/ping.php3
-rw-r--r--mod/update_network.php1
3 files changed, 4 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php
index 04390d3f1..837ac7aea 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -680,7 +680,7 @@ function network_content(&$a, $update = 0, $load = false) {
}
- // logger('items: ' . count($items));
+ logger('items: ' . count($items));
if($update_unseen)
$r = q("UPDATE `item` SET item_flags = ( item_flags ^ %d)
diff --git a/mod/ping.php b/mod/ping.php
index 4ab7a68cb..0e3ad83db 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -49,6 +49,7 @@ function ping_init(&$a) {
}
if(x($_REQUEST,'markRead') && local_user()) {
+
switch($_REQUEST['markRead']) {
case 'network':
$r = q("update item set item_flags = ( item_flags ^ %d ) where (item_flags & %d) and uid = %d",
@@ -67,7 +68,7 @@ function ping_init(&$a) {
);
break;
case 'messages':
- $r = q("update mail set mail_flags = ( item_flags ^ %d ) where uid = %d and not (item_flags & %d)",
+ $r = q("update mail set mail_flags = ( mail_flags ^ %d ) where channel_id = %d and not (mail_flags & %d)",
intval(MAIL_SEEN),
intval(local_user()),
intval(MAIL_SEEN)
diff --git a/mod/update_network.php b/mod/update_network.php
index e13eef0e6..16de19365 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -33,6 +33,7 @@ function update_network_content(&$a) {
echo str_replace("\t",' ',$text);
echo (($_GET['msie'] == 1) ? '</div>' : '</section>');
echo "</body></html>\r\n";
+// logger('update_network: ' . $text);
killme();
} \ No newline at end of file