drupal field changing by "magic"

I’m relatively new to PHP and have taken on maintaining a Drupal 6 site.

We are noticing that a tinyint database field ‘nacsw_subevent.entryOpen’ is changing seemingly by itself. Clearly this cannot be but I’m struggling to find how/where this is happening. The field is not changed programmatically anywhere in the code base.

The problem is intermittent and not reproducible (by me). It does seem to happen when $timeDiff (below) is 3 hours.

I’m clutching at straws but is there anything in this snippet that might cause this to happen? ‘entryOpen’ and ‘waitlist’ are both tinyints (booleans).

else if ($timeDiff > 3 * 60 * 60 && !$this->subevent->entryOpen && !$this->waitlist) {
return theme(‘nacsw_trialEntry_closed’, $this->event, $this->subevent);
}

Thanks for looking…
Peter

Sponsor our Newsletter | Privacy Policy | Terms of Service