JacksonRiver/springboard_modules — pull request #188 by benclark (2012-12-03 19:35:23+00:00)
Title: Fixing "asort() expects parameter 1 to be array, null given" PHP warning

Fixing `asort() expects parameter 1 to be array, null given` PHP warning when there are no campaigns returned by `$sf->client->query("select Id, Name from Campaign Order By Name")`.

$temp_campaigns was previously only defined if the foreach() loop executed, which it wouldn't when the $campaigns array was empty.