public function profilegetmuddefinition($id) { $db =& JFactory::getDBO(); $db->setQuery('SELECT introtext, description FROM #__sobipro_category WHERE id=' . intval($id)); $mdt = $db->loadAssoc(); if (!empty($mdt)) { $name = trim(preg_replace('/\\s+/', ' ', $mdt['introtext'])); $description = trim(preg_replace('/\\s+/', ' ', profilef::unhte(strip_tags(str_replace('>', '> ', $mdt['description']))))); } else { $name = ''; $description = ''; } return array($name, $description); }