getProduct( $id ); $proTypeId = ! is_array( $returnInfo ) ? 0 : $returnInfo[0]['protypeid']; if ( ! is_array( $returnInfo ) ) { $smarty->assign( 'isNull', 1 ); } else { $smarty->assign( 'isNull', 0 ); } $proType = $visit->getProTypeStr( $proTypeId ); $smarty->assign( 'proType', $proType ); $smarty->assign( 'content', $returnInfo ); $smarty->display( 'product/view.tpl.html' ); include_once ( '../bottom.php' ); ?>