| @@ -33,9 +33,9 @@ | ||
| 33 | 33 | public function duplicate(): void |
| 34 | 34 | { |
| 35 | 35 | wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token'); |
| 36 | 36 | |
| 37 | - $automations = acym_getVar('int', 'elements_checked'); | |
| 37 | + $automations = acym_getVar('array', 'elements_checked', []); | |
| 38 | 38 | |
| 39 | 39 | if (empty($automations)) { |
| 40 | 40 | $this->listing(); |
| 41 | 41 | |
| @@ -98,9 +98,9 @@ | ||
| 98 | 98 | public function triggerAutomation(): void |
| 99 | 99 | { |
| 100 | 100 | wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token'); |
| 101 | 101 | |
| 102 | - $automationIds = acym_getVar('int', 'elements_checked'); | |
| 102 | + $automationIds = acym_getVar('array', 'elements_checked', []); | |
| 103 | 103 | |
| 104 | 104 | if (empty($automationIds)) { |
| 105 | 105 | $this->listing(); |
| 106 | 106 | |