X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FInvoke.php;h=bcb6da8a9892b2a76e7be557bd6978f90e309f88;hb=1aaadbcc9ff73774f08ddd7ad65a81929a37ab16;hp=780ae182fa8933155968e5feb193f2e11e5cc8af;hpb=c839fadf5e37aecb9d022f4917fd3296da6e512c;p=civicrm-core.git diff --git a/CRM/Core/Invoke.php b/CRM/Core/Invoke.php index 780ae182fa..bcb6da8a98 100644 --- a/CRM/Core/Invoke.php +++ b/CRM/Core/Invoke.php @@ -277,11 +277,11 @@ class CRM_Core_Invoke { if (is_array($item['page_callback']) || strpos($item['page_callback'], ':')) { $result = call_user_func(Civi\Core\Resolver::singleton()->get($item['page_callback'])); } - elseif (strstr($item['page_callback'], '_Form')) { + elseif (strpos($item['page_callback'], '_Form') !== FALSE) { $wrapper = new CRM_Utils_Wrapper(); $result = $wrapper->run( - CRM_Utils_Array::value('page_callback', $item), - CRM_Utils_Array::value('title', $item), + $item['page_callback'] ?? NULL, + $item['title'] ?? NULL, $pageArgs ?? NULL ); }