Welcome Guest, Not a member yet? Register   Sign In
Illegal offset type in isset or empty
#6

[eluser]louisl[/eluser]
Just had a quick look at the docs, seems if you have mixed data you need to define it's type and the whole thing does apparently have to be an array.

From the docs (http://ellislab.com/codeigniter/user-gui...mlrpc.html)
"If you use data types other than strings, or if you have several different data types, you will place each parameter into its own array, with the data type in the second position:"

I think that means this:-

Code:
$request = array (
                   array($apiSession, 'string'),
                   array('product_stock.update', 'string'),
                   array($sku, 'int'),
                   array( array('qty'=>50, 'is_in_stock'=>1), 'array')
);

Sorry I don't have more time to look into this, hope this helps


Messages In This Thread
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 11:01 AM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 11:25 AM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 11:47 AM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 12:00 PM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 12:33 PM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 12:53 PM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 01:22 PM
Illegal offset type in isset or empty - by El Forum - 06-16-2011, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB