function merchantedit() { $id = JRequest::getVar('id', 0, 'get', 'int'); $db =& JFactory::getDBO(); $cid = JRequest::getVar('cid', array(0), '', 'array'); JArrayHelper::toInteger($cid, array(0)); $id = $cid[0]; $row =& JTable::getInstance('deal_merchants', 'Table'); $row->load($id); DealCatalogHTML::merchantedit(&$row); }