} } else { echo '<font color="#FF0000">' . $site->getError() . '</font>'; } } function editSites($edit) { global $mainframe; // Initialize variables $db =& JFactory::getDBO(); $user =& JFactory::getUser(); $uid = $user->get('id'); $cid = JRequest::getVar('cid', array(0), '', 'array'); JArrayHelper::toInteger($cid, array(0)); $row = new CACL_site($db); if ($edit) {