Odd Problems
Jamroom Developers
Quote: ....So does anyone have any ideas on what might cause $_data to be populated differently? To sometimes not include the threading fields stored in the database? .....
First guess would be caching. If the datastore contains
....
comment_thread_id] => 548368
[comment_parent_id] => 548440
[comment_thread_level] => 2
...
when you're looking at it, but not when your modules run during the event listener phase, my first guess would be caching, perhaps ........ scratch that, my first guess is firing order. If those 3 values are added via a listener, then perhaps your modules listener is firing before the listener that adds those values fires.
Perhaps try adding a lower priority to your module in its _meta() function in include.php
Or perhaps try on the 'db_create_item_exit' listener which fires after 'db_create_item' does.