XerxX 0 Report post Posted December 1, 2020 Jan, try to make the $variables global inside the function: global $allow_edit, $allow_add, $allow_delete, $assignedtree; HTH Erik Share this post Link to post Share on other sites
Michel KIRSCH 0 Report post Posted December 1, 2020 OK. I'm too late ! Michel global $allow_edit, $allow_add, $allow_delete, $assignedtree Share this post Link to post Share on other sites
Jan Suhr 0 Report post Posted December 1, 2020 Thank you guys, I haven't worked much with functions in PHP and I now see that there are some global variables already assigned to this function. And now it works! Thanks you learn stuff as long as you live 😁 Share this post Link to post Share on other sites
Jan Suhr 0 Report post Posted December 1, 2020 I have now got my little PRIV tag konverter that will add a ~ to the TITL if there is a PRIV in a source or note. I'm not sure if it will work for any GEDCOM's from other programs than Mac Family Tree. Diedrich Hesmer is a Gedcom-guru and his utilities for cleaning up or change Gedcoms are awesome. http://ofb.hesmer.name/index_e.html And he can do special programs on requests like in this case for me. Share this post Link to post Share on other sites