Bootycall
11.06.2009, 15:41:07
... HI @ all
ich hoffe ihr könnt einen absoluten PHP-Newbie helfen. Folgender Code:
<?php foreach( $profile['fields']['Kurz Bio'] as $item ): ?>
<li class="info-title"><b><?php echo $item['name']; ?>:</b><span class="detail5"><?php if(!empty($item['searchLink'])) :?>
<a href="<?php echo $item['searchLink']; ?>"> </span>
<?php endif; ?>
<?php echo CProfileLibrary::getFieldData( $item['type'] , $item['value'] ); ?>
<?php if(!empty($item['searchLink'])) :?>
</a>
<?php endif; ?>
</li>
</ul>
<?php endforeach; ?>
folgende Fehlerquote:
Fatal error: Cannot use object of type stdClass as array in /xxxx/xxxx/templates/blackout/profile.header.php on line 103
line 103: <?php foreach( $profile['fields']['Kurz Bio'] as $item ): ?>
Kann mir vielleicht jemand auf die Sprünge helfen.
Greetz Booty
ich hoffe ihr könnt einen absoluten PHP-Newbie helfen. Folgender Code:
<?php foreach( $profile['fields']['Kurz Bio'] as $item ): ?>
<li class="info-title"><b><?php echo $item['name']; ?>:</b><span class="detail5"><?php if(!empty($item['searchLink'])) :?>
<a href="<?php echo $item['searchLink']; ?>"> </span>
<?php endif; ?>
<?php echo CProfileLibrary::getFieldData( $item['type'] , $item['value'] ); ?>
<?php if(!empty($item['searchLink'])) :?>
</a>
<?php endif; ?>
</li>
</ul>
<?php endforeach; ?>
folgende Fehlerquote:
Fatal error: Cannot use object of type stdClass as array in /xxxx/xxxx/templates/blackout/profile.header.php on line 103
line 103: <?php foreach( $profile['fields']['Kurz Bio'] as $item ): ?>
Kann mir vielleicht jemand auf die Sprünge helfen.
Greetz Booty