[turba] api.php and search source order

Stephen Grier s.e.grier@qmul.ac.uk
Fri, 27 Sep 2002 10:04:01 +0100


Chuck Hagenbuch wrote:
>>I have tracked the cause of this behaviour to the turbaGetSources()
>>function of lib/api.php. The search_sources list is split into 2 arrays; 
>>those which are read-only, and those not. However, when the 'writable' 
>>flag is *not* set, turbaGetSources() calls array_merge() which alters the 
>>order of the search sources, rather than returning the original list.
>  
> Try what I just committed to CVS:
> http://cvs.horde.org/diff.php/turba/lib/api.php?r1=1.14.2.10&r2=1.14.2.11&ty=u

Chuck, please note that this gives an error 'Undefined variable 'writable' on line 
202'. The spelling of 'writable' on line 202 is different to that on line 191.

Apart from that, though, this seems to work fine.

Thanks,
Stephen.

> 
> (a bit simpler)
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck@horde.org>
> "People ask me all the time what it will be like living without otters."
>  - Google, thanks to Harpers
>

-- 

Stephen Grier				s.e.grier@qmul.ac.uk
Systems Developer
Computing Services
Queen Mary, University of London