Forum Moderators: coopster
215-231 lines
$html2out = array();
foreach ( $rows as $row ) {
if ($where == 'section' OR $where == 'category' OR $where == 'content') {
$Itemid = $mainframe->getItemid( $row->id, 0, 0, $bs, $bc, $gbs );
// Blank itemid check for SEF
if ($Itemid == NULL) {
$Itemid = '';
} else {
$Itemid = '&Itemid='.$Itemid;
}
$link = sefRelToAbs( 'index.php?option=com_content&task=view&id='. $row->id . $Itemid );
} else {
$link = $row->link;
}
if([url=http://us2.php.net/manual/en/function.is-array.php]is_array[/url]($rows)) {
echo 'Is array!';
} else {
echo 'Not array!';
}
Good luck!