Fatal Error - Random Loans Checkbox
quickcel - March 27, 2009 - 19:18
| Project: | Kiva |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | CrookedNumber |
| Status: | closed |
Jump to:
Description
Whenever I check the Random Loans box I get an error like the following:
Fatal error: Cannot use object of type stdClass as array in /home/www/example.com/htdocs/sites/all/modules/kiva/kiva.module on line 134
It looks like if I change line 90 to:
$loans[] = $json->loans[$key];
from:
$loans = $json->loans[$key];
it will build the array and the error message goes away.

#1
Thx. I'm getting the error as well.
#2
Fixed in DRUPAL-6--1. You were right, quickcel.
http://drupal.org/cvs?commit=189660
#3
Automatically closed -- issue fixed for 2 weeks with no activity.