load(); if ($profile && $profile->getType() == 'profile' && is_admin_logged_in()) { $user = $profile->getOwnerEntity(); if (!$user->unapprove()) { $Dippler->add_system_message(_("User not unapproved."), 'error'); forward("profile/view/{$user->getId()}/edit"); } $Dippler->add_system_message(_("User unapproved.")); forward($profile->getURL()); } forward("");