From 7d9dfcb29051828f84cdb26a013c985020807c94 Mon Sep 17 00:00:00 2001 From: Julian Egelstaff Date: Tue, 15 Oct 2024 11:40:50 -0400 Subject: [PATCH] Need DB patch if custom_code exists --- modules/formulize/admin/formindex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/formulize/admin/formindex.php b/modules/formulize/admin/formindex.php index 22f9906ce..bdecd86d1 100644 --- a/modules/formulize/admin/formindex.php +++ b/modules/formulize/admin/formindex.php @@ -111,7 +111,7 @@ function patch40() { } } - if (!$needsPatch AND (!isset($_GET['op']) OR ($_GET['op'] != 'patch40' AND $_GET['op'] != 'patchDB'))) { + if (!$needsPatch AND !file_exists(XOOPS_ROOT_PATH.'/modules/formulize/custom_code') AND (!isset($_GET['op']) OR ($_GET['op'] != 'patch40' AND $_GET['op'] != 'patchDB'))) { return; }