]> git.mxchange.org Git - friendica.git/commitdiff
Avoid SQL error when in Forum view
authorMichael <heluecht@pirati.ca>
Sat, 7 Oct 2017 21:51:03 +0000 (21:51 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Oct 2017 21:51:03 +0000 (21:51 +0000)
mod/network.php

index a78500174ea1d31f07981f81887e0fa2d84d0bb2..4734e33577d38f1853487f2bdd1154a7629b7895 100644 (file)
@@ -856,11 +856,12 @@ function networkThreadedView(App $a, $update = 0) {
 
        if (!$group && !$cid && !$star) {
                $condition = array('unseen' => true, 'uid' => local_user());
+               networkSetSeen($condition);
        } elseif ($parents_str) {
                $condition = array("`uid` = ? AND `unseen` AND `parent` IN (" . dbesc($parents_str) . ")", local_user());
+               networkSetSeen($condition);
        }
 
-       networkSetSeen($condition);
 
        $mode = 'network';
        $o .= networkConversation($a, $items, $mode, $update);