In line 866 of the date_api.module we are passing an array directly to a function that requires a variable passed by reference, not a naked array.

We need to change this:
$max_granularity = end(date_granularity_sorted($granularity));

to this

  $sorted_granularity = date_granularity_sorted($granularity)
  $max_granularity = end($sorted_granularity);

Comments

apotek’s picture

Status: Active » Needs review
StatusFileSize
new645 bytes

And here's the patch that will do it.

woops. Worked a bit too fast there. submitting a new patch.

apotek’s picture

StatusFileSize
new669 bytes

Here's the correct version.

karens’s picture

Status: Needs review » Fixed

I'm not sure where it got added, but this change is already in the dev code now.

I'm guessing it came from you, but I don't remember exactly what happened :)

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

apotek’s picture

Thanks KarenS, I'm not sure how that happened either. Seems like I still haven't figured out how to make a patch that gets credited to me :-) . Hope all is well with you.