From ee94a575f1dfaded607579e9e1527ad67751208e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Fern=C3=A1ndez?= <975883+pazos@users.noreply.github.com> Date: Sun, 27 Nov 2022 12:35:18 +0100 Subject: [PATCH] calibre: fix attempt to index path_entry (#9837) Fixes #9836 --- plugins/calibre.koplugin/search.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calibre.koplugin/search.lua b/plugins/calibre.koplugin/search.lua index ac53f5a2a..614a55077 100644 --- a/plugins/calibre.koplugin/search.lua +++ b/plugins/calibre.koplugin/search.lua @@ -416,7 +416,7 @@ function CalibreSearch:browse(option) self.search_menu.paths = {} self.search_menu.onReturn = function () local path_entry = table.remove(self.search_menu.paths) - local page = path_entry.page or 1 + local page = path_entry and path_entry.page or 1 if #self.search_menu.paths < 1 then -- If nothing is left in paths we switch to original items and title self.search_menu.paths = {}