Skip to content

Commit

Permalink
Need DB patch if custom_code exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jegelstaff committed Oct 15, 2024
1 parent 01e4bd7 commit 7d9dfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/formulize/admin/formindex.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7d9dfcb

Please sign in to comment.