}
if (!empty($whereStatement)) {
- $SEL = 0;
- if (isPostRequestElementSet(('task'))) $SEL = countSelection(postRequestElement('task'));
-
- if ((isPostRequestElementSet(('assign'))) && ($SEL > 0)) {
+ if ((isPostRequestElementSet('assign')) && (countPostSelection() > 0)) {
// Assign / do tasks
loadIncludeOnce("inc/modules/admin/overview-inc.php");
if (empty($dmy)) $dmy = '';
`subject` ASC,
`task_created` DESC',
__FILE__, __LINE__);
- if (($SEL > 0) && (!isDemoModeActive())) {
+ if ((countPostSelection() > 0) && (!isDemoModeActive())) {
// Only unassign / delete tasks when there are selected tasks posted
if (isPostRequestElementSet('unassign')) {
// Unassign from tasks