projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
REF - Switch CRM_Utils_Array::value to empty in conditionals
[civicrm-core.git]
/
CRM
/
Activity
/
Task.php
diff --git
a/CRM/Activity/Task.php
b/CRM/Activity/Task.php
index a65f8170dc98a8c4264fef3c77e2ca37a1cb7b5d..3b81d124dd893fd1be0fe3aa5d7afc539f21bbfa 100644
(file)
--- a/
CRM/Activity/Task.php
+++ b/
CRM/Activity/Task.php
@@
-68,6
+68,11
@@
class CRM_Activity_Task extends CRM_Core_Task {
],
'result' => FALSE,
],
],
'result' => FALSE,
],
+ self::PDF_LETTER => [
+ 'title' => ts('Print/merge Document'),
+ 'class' => 'CRM_Activity_Form_Task_PDF',
+ 'result' => FALSE,
+ ],
self::TASK_SMS => [
'title' => ts('SMS - send reply'),
'class' => 'CRM_Activity_Form_Task_SMS',
self::TASK_SMS => [
'title' => ts('SMS - send reply'),
'class' => 'CRM_Activity_Form_Task_SMS',
@@
-147,7
+152,7
@@
class CRM_Activity_Task extends CRM_Core_Task {
*/
public static function getTask($value) {
self::tasks();
*/
public static function getTask($value) {
self::tasks();
- if (!$value ||
!CRM_Utils_Array::value($value, self::$_tasks
)) {
+ if (!$value ||
empty(self::$_tasks[$value]
)) {
// make the print task by default
$value = self::TASK_PRINT;
}
// make the print task by default
$value = self::TASK_PRINT;
}