Merge pull request #2398 from kurund/CRM-13981
[civicrm-core.git] / CRM / Activity / StateMachine / Search.php
index 690fc46ac124d131dc352649065cd96da7b3d019..04366f8d7cf53937dae6bada3f04931b4d8dd861 100644 (file)
@@ -78,7 +78,7 @@ class CRM_Activity_StateMachine_Search extends CRM_Core_StateMachine {
   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 {