TypeError in_array() null given
Closed this issue · 1 comments
botsmack commented
We're running Event Navigation Tweaks - v1.1.2 on REDCap 14.6.1 and attempted to upgrade to PHP 8.1, but we're getting a similar error as #8.
TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /public_html/modules/event_navigation_tweaks_v1.1.2/EventNavigationTweaks.php:130
Stack trace:
#0 /public_html/modules/event_navigation_tweaks_v1.1.2/EventNavigationTweaks.php(130): in_array()
#1 /public_html/modules/event_navigation_tweaks_v1.1.2/EventNavigationTweaks.php(114): MCRI\EventNavigationTweaks\EventNavigationTweaks->makeNavRow()
#2 /public_html/modules/event_navigation_tweaks_v1.1.2/EventNavigationTweaks.php(18): MCRI\EventNavigationTweaks\EventNavigationTweaks->makeEventNavPopoverContent()
#3 /public_html/redcap_v14.6.1/ExternalModules/classes/ExternalModules.php(3156): MCRI\EventNavigationTweaks\EventNavigationTweaks->redcap_data_entry_form_top()
#4 /public_html/redcap_v14.6.1/ExternalModules/classes/ExternalModules.php(3323): ExternalModules\ExternalModules::startHook()
#5 /public_html/redcap_v14.6.1/ExternalModules/classes/ExternalModules.php(3356): ExternalModules\ExternalModules::ExternalModules\{closure}()
#6 /public_html/redcap_v14.6.1/Classes/Hooks.php(41): ExternalModules\ExternalModules::callHook()
#7 /public_html/redcap_v14.6.1/DataEntry/index.php(535): Hooks::call()
#8 {main}