I replied to a similar email this week with

if (!$list){$list=array();}

before the set

On 12/13/06, Matt Adams <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
>
> > It seems, that the selectTag-function doesn't get an array.
> > So when the generateList-function doesn't find a set in the database it
> > does't return anything (not even an empty array).
> >
> > How can I solve my problem?
>
> Assuming everything is working as it should in the core & your app, this
> really isn't a Cake issue at this point.
>
> Ummmm... test the result of the generateList function before sending it
> to the selectTag bit.  If it doesn't return anything then pass an empty
> array to the selectTag, otherwise, pass the result.
>
> Just my two cents without having actually looked at your problem.
>
>
> Cheers,
>
> Matt
> --
> BASIC: A programming language.  Related to certain social diseases
> in that those who have it will not admit it in polite company.
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to