sgladstone / com.fountaintribe.eventhelper

CiviCRM extension that provides tools for managing events and participants
Other
0 stars 3 forks source link

CiviCRM 5.x Fancy Participant Search Throws Error - 'Call to undefined function split()' #4

Open zkrebs opened 5 years ago

zkrebs commented 5 years ago

Error: Call to undefined function split() in CRM_Eventhelper_Form_Search_FancyParticipantSearch->__construct() (line 43 of /sites/all/modules/civicrm_extensions/com.fountaintribe.eventhelper/CRM/Eventhelper/Form/Search/FancyParticipantSearch.php).

CiviCRM 5.11.0

If I change line 43 of /com.fountaintribe.eventhelper/CRM/Eventhelper/Form/Search/FancyParticipantSearch.php

from

$tmpcur = split('' ,$curUserChoice );

to

$tmpcur = explode('' ,$curUserChoice );

Then it works. I believe split() was deprecated and removed in PHP 7.0 https://phppot.com/php/reasons-why-split-is-deprecated/

zkrebs commented 5 years ago

oops, already solved

https://github.com/sgladstone/com.fountaintribe.eventhelper/pull/3/commits/13dba7c317b14316647e83beba85ccb14d243bb0