Correct PHP code to dynacase-core (closes #3443)