PHP Classes

Bug fix

Recommend this page to a friend!

      XML To Array  >  All threads  >  Bug fix  >  (Un) Subscribe thread alerts  
Subject:Bug fix
Summary:PHP Notice: Undefined index
Messages:1
Author:Jeff Williams
Date:2007-05-22 14:03:23
 

  1. Bug fix   Reply   Report abuse  
Picture of Jeff Williams Jeff Williams - 2007-05-22 14:03:23
I used more strict checking and I get this message:

PHP Notice: Undefined index: value in class.xmltoarray.php on line 52

If you replace line 52 with this code, it fixes the problem:

$child[$name]= isset($values[$i]['value'])?($values[$i]['value']):'';

I thought this might help. Nice class!

-Jeff