Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/04/2009, 18:54
Freebot
 
Fecha de Ingreso: abril-2009
Mensajes: 1
Antigüedad: 15 años, 1 mes
Puntos: 0
Notice: Undefined index: title in

Este código:
if(!function_exists('charComparsa')){
function charComparsa($parser, $data) {
global $insideitem, $sl_tag, $sl_items, $sl_itemcount, $site_id, $temp_id, $sl_imagen, $catid, $insidecate ;
if ($insideitem) {
switch ($sl_tag) {
case "item":
$sl_itemcount=$sl_itemcount+1;
break;
case "title":
$sl_items[$sl_itemcount]['title'] .= trim($data);
break;
case "link":
$sl_items[$sl_itemcount]['link'] .= trim(str_replace("XXX",$site_id,$data));
$sl_items[$sl_itemcount]['id'] = substr($sl_items[$sl_itemcount]['link'],(strpos($sl_items[$sl_itemcount]['link'],"\$\$id=")+5));
break;
case "image_url":
$sl_items[$sl_itemcount]['image_url'] .= trim($data);
break;
case "seller_type":
$sl_items[$sl_itemcount]['seller_type'] .= trim($data);
break;
case "auction_type":
$sl_items[$sl_itemcount]['auction_type'] .= trim($data);
break;
case "mpago":
$sl_items[$sl_itemcount]['mpago'] .= trim($data);
break;
case "currency":
$sl_items[$sl_itemcount]['currency'] .= trim($data);
break;

Da estos errores:

Notice: Undefined index: title in /home/obraweb/public_html/xml-comparsa.php on line 312

Notice: Undefined index: link in /home/obraweb/public_html/xml-comparsa.php on line 315

Notice: Undefined index: image_url in /home/obraweb/public_html/xml-comparsa.php on line 319

Notice: Undefined index: seller_type in /home/obraweb/public_html/xml-comparsa.php on line 322

Notice: Undefined index: auction_type in /home/obraweb/public_html/xml-comparsa.php on line 325

Notice: Undefined index: mpago in /home/obraweb/public_html/xml-comparsa.php on line 328

Alguien sabe cómo corregirlo?