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
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

CrookedNumber - March 28, 2009 - 02:46
Assigned to:Anonymous» CrookedNumber

Thx. I'm getting the error as well.

#2

CrookedNumber - March 28, 2009 - 02:58
Status:active» fixed

Fixed in DRUPAL-6--1. You were right, quickcel.

http://drupal.org/cvs?commit=189660

#3

System Message - April 11, 2009 - 03:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.