function taskName($controller, $formName = 'Search') {
// total hack, check POST vars and then session to determine stuff
// fix value if print button is pressed
- if (CRM_Utils_Array::value('_qf_' . $formName . '_next_print', $_POST)) {
+ if (!empty($_POST['_qf_' . $formName . '_next_print'])) {
$value = CRM_Activity_Task::PRINT_ACTIVITIES;
}
else {