Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/03/2010, 10:12
margaro
 
Fecha de Ingreso: diciembre-2008
Mensajes: 32
Antigüedad: 15 años, 4 meses
Puntos: 0
advertencia de php: Notice: Uninitialized string offset: 0 in....

Que tal! estoy aprendiendo sobre la generacion de graficos estadisticos en php, estoy utilizando la libreria pChart, si alguien esta interesado [URL="http://pchart.sourceforge.net/"]pChart [/URL], trato de ejecutar los ejemplos incluso uno hecho por otra persona...[URL="http://arqonexus.hostzi.com/?p=78&cpage=1#comment-6"]esta aqui [/URL]...

Pero me sale la advertencia que les digo.. Notice: Uninitialized string offset: 0 in C:\wamp\...... este es el codigo y la linea donde me sale el error es el 126
Código PHP:
function AddPoint($Value,$Serie="Serie1",$Description="")
    {
     if (
is_array($Value) && count($Value) == 1)   //linea 119
      
$Value $Value[0];

     
$ID 0;
     for(
$i=0;$i<=count($this->Data);$i++)
      { if(isset(
$this->Data[$i][$Serie])) { $ID $i+1; } }  //linea 126 
encontre la causa de la advertencia en ingles pero no me ha quedado claro... "This error would occur if any of the following variables were actually strings or null instead of arrays, in which case accessing them with an array syntax $var[$i] would be like trying to access a specific character in a string:" Gracias por su ayuda...