// Check if entires are checked
if (countPostSelection() > 0) {
// Add option for events
$adminsList = generateOptionList('admins', 'id', 'login', '', 'email');
// Check if entires are checked
if (countPostSelection() > 0) {
// Add option for events
$adminsList = generateOptionList('admins', 'id', 'login', '', 'email');