Quote:
Originally Posted by orban
Oh I'm sorry.
array_walk doesn't return the new array.
Do
array_walk($sphinx_groups2, "intvalArray");
$cl->SetGroups2 ( $sphinx_groups2 );
|
Thanks - that seems to work. Curiously I am now getting assertion errors further down in the date element:
/// set timestamps to match
function SetTimestampRange ( $min, $max )
{
assert ( is_int($min) );
assert ( is_int($max) );
assert ( $min<=$max );
$this->_min_ts = $min;
$this->_max_ts = $max;
}
Which is most odd. Looks like in 3.0.x everything is held as text.
It appears adding:
$datecut = intval($datecut);
Just before datecut is first looked at seems to sort that out.
As I assume intval doesn't do anything harmful so it can be used generically.
Thanks oban for the guidence.