[dev] [commits] Horde branch master updated. 55fe0e1abe03172043ea671e1fcd9216d213bd32

Jan Schneider jan at horde.org
Wed Aug 25 08:11:24 UTC 2010


Zitat von Michael M Slusarz <slusarz at horde.org>:

> The branch "master" has been updated.
> The following is a summary of the commits.
>
> from: 6ec290a548b91e58f1254cff35c7f34dc7f176bd
>
> 55fe0e1 Revert "We expect an array back, so pass it an array."
>
> -----------------------------------------------------------------------
>
> commit 55fe0e1abe03172043ea671e1fcd9216d213bd32
> Author: Michael M Slusarz <slusarz at curecanti.org>
> Date:   Tue Aug 24 22:41:27 2010 -0600
>
>     Revert "We expect an array back, so pass it an array."
>
>     This reverts commit ab3d724ed9c4ef81741600076a87a66e891717cd.
>
>     We *do* get an array back when passing the variable name as a string,
>     and we avoid an unneeded compact() call.  And, more important, this
>     broke display of every mime driver.

Only if the application actually has a mime_drivers.php. If not, it  
returns null, if an array is expected, it returns array(). And you  
loop over that return value later.
This can be seen in any application without it's own mime_drivers.php  
like Wicked.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list