Errore su contributo admin

Postate qui discussioni di carattere generale riguardo a problemi di installazione e configurazione di osCommerce

Moderatore: mod Generali

Rispondi
liquidman
membro Junior
membro Junior
Messaggi: 3
Iscritto il: 01/05/2007, 17:47

Errore su contributo admin

Messaggio da liquidman »

Salve a tutti,

mi ritrovo con un errore su un contributo dell'admin di oscommerce e precisamente:

Warning: reset() [function.reset]: Passed variable is not an array or object in /web/htdocs/www.xxxxx.it/home/ecommerce/admin/inclu ... t_info.php on line 17

Warning: Variable passed to each() is not an array or object in /web/htdocs/www.xxxxx.it/home/ecommerce/admin/inclu ... t_info.php on line 18

dove il file object_info.php è costituito dalle seguenti righe di codice:

<?php
/*
$Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

class objectInfo {

// class constructor
function objectInfo($object_array) {
reset($object_array);
while (list($key, $value) = each($object_array)) {
$this->$key = tep_db_prepare_input($value);
}
}
}
?>

Cosa può causare i due errori?

Grazie
Rispondi