Issue 3801: Personal notes hadn't been displayed
[friendica.git/.git] / mod / notes.php
index 8356275..d181060 100644 (file)
@@ -73,7 +73,7 @@ function notes_content(App $a, $update = false) {
 
        // default permissions - anonymous user
 
-       $sql_extra = " AND `allow_cid` = '<" . $a->contact['id'] . ">' ";
+       $sql_extra = " AND `item`.`allow_cid` = '<" . $a->contact['id'] . ">' ";
 
        $r = q("SELECT COUNT(*) AS `total`
                FROM `item` %s