projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #17340 from demeritcowboy/not-yet-deprecated
[civicrm-core.git]
/
CRM
/
Contribute
/
Task.php
diff --git
a/CRM/Contribute/Task.php
b/CRM/Contribute/Task.php
index 0acabfa405cc8381d6906bc05c4d22fd4c579ab0..9a88cfc6d51ad802e97268955d6a8e6e82d02a0b 100644
(file)
--- a/
CRM/Contribute/Task.php
+++ b/
CRM/Contribute/Task.php
@@
-175,7
+175,7
@@
class CRM_Contribute_Task extends CRM_Core_Task {
*/
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;
}