buffalo/MunkiFace — Issue #13: server-app catalogs controller issue
Author: gregneagle
Created: 2012-02-27 16:25:01+00:00
State: open

Calling the catalogs controller from the server app:

http://localhost/~gneagle/server-app/?controller=catalogs

I get:

Warning: Invalid argument supplied for foreach() in /Users/gneagle/Sites/server-app/app/Controllers/CatalogsController.php on line 16
[]

For my testing environment, in line 16, $model contains:

{"pkgsinfo":["Adium-1.3.10.0.0.plist","Thunderbird-3.1.4",{"apps":["GoogleChrome-13.0.782.220","GoogleChrome-14.0.835.163","GoogleChrome-16.0.912.75","Thunderbird-6.0","Thunderbird-7.0.1",{"mozilla":["Firefox-3.6.12.0.0","Firefox-4.0","Firefox-6.0.2","Firefox-7.0","Firefox-9.0.1"]}]}]}

But the code appears to be expecting a list of plist-style objects:

Ala:

$catalogs = $plist["catalogs"];

So something is missing here...