Skip to content

Commit 36fa8a6

Browse files
committed
LearnPath: Internals # fix commit 8ba13c4 because there is not always a LearnpathVisible registry - refs BT#23071
1 parent 8ba13c4 commit 36fa8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/api.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4340,7 +4340,7 @@ function api_get_item_visibility(
43404340

43414341
$lpVisibilityCondition = '';
43424342
if ($tool === 'learnpath') {
4343-
$lpVisibilityCondition = " AND lastedit_type in ('LearnpathInvisible','LearnpathVisible') ";
4343+
$lpVisibilityCondition = " AND lastedit_type != 'LearnpathSubscription' ";
43444344
}
43454345

43464346
$sql = "SELECT visibility

0 commit comments

Comments
 (0)