}
if (!empty($row)) {
- $dbName = CRM_Utils_Array::value('username', $row);
- $dbEmail = CRM_Utils_Array::value('email', $row);
+ $dbName = $row['username'] ?? NULL;
+ $dbEmail = $row['email'] ?? NULL;
if (strtolower($dbName) == strtolower($name)) {
$errors['cms_name'] = ts('The username %1 is already taken. Please select another username.',
[1 => $name]
$absolute = FALSE,
$fragment = NULL,
$frontend = FALSE,
- $forceBackend = FALSE
+ $forceBackend = FALSE,
+ $htmlize = TRUE
) {
$config = CRM_Core_Config::singleton();
$separator = '&';
*/
public function isUserLoggedIn() {
$user = JFactory::getUser();
- return ($user->guest) ? FALSE : TRUE;
+ return !$user->guest;
}
/**
foreach ($plugins as $plugin) {
// question: is the folder really a critical part of the plugin's name?
$name = implode('.', ['joomla', $plugin['type'], $plugin['folder'], $plugin['element']]);
- $result[] = new CRM_Core_Module($name, $plugin['enabled'] ? TRUE : FALSE);
+ $result[] = new CRM_Core_Module($name, !empty($plugin['enabled']));
}
return $result;