Closed adamkiss closed 13 years ago
__isset overloading isn't currently implemented in ProcessWire. I can see how it might cause confusion when doing something like empty($page->urlSegment), so I will go ahead and implement it it one of the next commits.
I know it isn't, I saw the code :)
But I think it might cause a lot of confusion (it took 45 minutes of my life already to find out why it isn't working and to find a solution :)
This has been fixed in the current version. Can you confirm that it works for you?
Closing since this has been fixed, but please let me know if you find anything similar.
When calling i.e.
empty($page->urlSegment)
whenurlSegment
is in fact set, PHP returns incorrectlytrue
.This is probably because
__isset()
method wasn't implemented on$page
object.More information:
__isset
]