$artifact_sql['cond'] = "atf.categoryid = " . (int)$artifact_id;
$artifact_sql['where'] = " ag.groupid = a.groupid
OR a.groupid = 0
- OR (a.artifact_type IS NULL AND (atf.authorid = " . (int)$authorid . " OR atf.authorid = 0))";
+ OR (a.artifact_type IS NULL AND (atf.authorid = " . (int)$authorid . " OR atf.authorid = 0 OR atf.authorid IS NULL))";
$artifact_sql['table'] = 'category';
}
" . (isset($serendipity['GET']['adminModule']) &&
$serendipity['GET']['adminModule'] == 'entries' &&
!serendipity_checkPermission('adminEntriesMaintainOthers')
- ? "AND (c.authorid = 0 OR c.authorid = " . $read_id . ")"
+ ? "AND (c.authorid IS NULL OR c.authorid = 0 OR c.authorid = " . $read_id . ")"
: "") . "
)
)";