changeset 4864:62006f4022e9

mod_default_bookmarks: Silence warning when probing for mod_bookmarks version
author Kim Alvefur <zash@zash.se>
date Mon, 10 Jan 2022 22:19:31 +0100
parents fdf50c4d23a3
children bd0a1f917d98
files mod_default_bookmarks/mod_default_bookmarks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_default_bookmarks/mod_default_bookmarks.lua	Sun Jan 09 18:20:28 2022 +0100
+++ b/mod_default_bookmarks/mod_default_bookmarks.lua	Mon Jan 10 22:19:31 2022 +0100
@@ -53,7 +53,7 @@
 
 if mod_bookmarks_available then
 	local mod_bookmarks = module:depends(mod_bookmarks_available);
-	if mod_bookmarks.publish_to_pep then
+	if rawget(mod_bookmarks, "publish_to_pep") then
 		local function on_bookmarks_empty(event)
 			local session = event.session;
 			local bookmarks = get_default_bookmarks(session.username);