[turba] api.php and search source order

Jan Schneider jan@horde.org
Fri, 27 Sep 2002 14:31:00 +0200


Zitat von Stephen Grier <s.e.grier@qmul.ac.uk>:

> 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.

Fixed in cvs.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft