Skip to content

Commit

Permalink
Dev: Default to empty string for sItems param
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Mar 28, 2023
1 parent 4ca8eee commit c90b0d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/FailedEmailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function actionResend()
$deleteAfterResend = App()->request->getParam('deleteAfterResend');
$preserveResend = is_null($deleteAfterResend);
$item = [App()->request->getParam('item')];
$items = json_decode((string) App()->request->getParam('sItems'));
$items = json_decode(App()->request->getParam('sItems', ''));
$selectedItems = $items ?? $item;
$emailsByType = [];
if (!empty($selectedItems)) {
Expand Down Expand Up @@ -170,7 +170,7 @@ public function actionDelete()
$this->redirect(['failedEmail/index/', 'surveyid' => $surveyId]);
}
$item = [App()->request->getParam('item')];
$items = json_decode((string) App()->request->getParam('sItems'));
$items = json_decode(App()->request->getParam('sItems', ''));
$selectedItems = $items ?? $item;
if (!empty($selectedItems)) {
$criteria = new CDbCriteria();
Expand Down

0 comments on commit c90b0d3

Please sign in to comment.