Fixed some PHP script issues thanks to @frankkoornstra.
Fixed some issues with getting post event repeat meta.