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 d93519d8bddc93f669d365fd23f22818222ac919..3b81d124dd893fd1be0fe3aa5d7afc539f21bbfa 100644
(file)
--- a/
CRM/Activity/Task.php
+++ b/
CRM/Activity/Task.php
@@
-152,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;
}