| 312 |
// most if checks in this foreach are for the following reason, if not stated otherwise: |
// most if checks in this foreach are for the following reason, if not stated otherwise: |
| 313 |
// dont make an data[''] or data[0] since this was not read from the DB, because id is autoincrement and starts at 1 |
// dont make an data[''] or data[0] since this was not read from the DB, because id is autoincrement and starts at 1 |
| 314 |
// and also in an xml tree there can not be an element </> , i hope :-) |
// and also in an xml tree there can not be an element </> , i hope :-) |
| 315 |
if( $value['parentId'] ) // see comment above |
if( isset($value['parentId']) ) // see comment above |
| 316 |
{ |
{ |
| 317 |
$this->data[$key]['parent'] = &$this->data[ $value['parentId'] ]; |
$this->data[$key]['parent'] = &$this->data[ $value['parentId'] ]; |
| 318 |
// the parent has an extra array which contains a reference to all it's children, set it here |
// the parent has an extra array which contains a reference to all it's children, set it here |