And what does this mean?

Warning: reset() expects parameter 1 to be array, null given in /home/nomaster/public_html/shop/admin/modules.php on line 227

Warning: Variable passed to each() is not an array or object in /home/nomaster/public_html/shop/admin/modules.php on line 228

Anyone?

x

on line 227, reset() expects parameter 1 to be array.

on line 228, the Variable passed to each() is not an array or object

Well yes, but what do I need to do?
I’m none the wiser I’m afraid.

x

On line 227, the first item in reset has to be an array, you can’t give it anything else, but array, so, w/e you’re passing on it, make it into an array.

on line 228, has to be in an array as well, nothing else.

So, both of your variables put them into arrays.

So these are lines 224 - 229 - how do I do what you’re suggesting?
[php]switch ($action) {
case ‘edit’:
$keys = ‘’;
reset($mInfo->keys);
while (list($key, $value) = each($mInfo->keys)) {
$keys .= ‘’ . $value[‘title’] . ‘
’ . $value[‘description’] . ‘
’;
[/php]

Thanks.
Sorry for being slow!

x

switch ($action) {
case ‘edit’:
$keys[] = ‘’; //Keys should be an array
reset($mInfo->keys);
while (list($key, $value) = each($mInfo->keys() )) { //Since key is an array
$keys .= ‘’ . $value[‘title’] . ‘
’ . $value[‘description’] . ‘
’;

Sponsor our Newsletter | Privacy Policy | Terms of Service