Around line 390, made the following change:
if ($this->datefield[$i]) {
became
if (isset($this->datefield[$i])) {
and now it seems to work.
Note that all these changes are in baaGrid.php
FYI, this is in response to myself on the postgresql guinnea pig thread...
and yes, I'm sitting on my brains today. 🙂