Skip to content
Snippets Groups Projects
Commit a3ff0266 authored by Tim Steiner's avatar Tim Steiner
Browse files

Prevent setting an invalid Zend_Date date in the ApprovalActionQueueModel::setExtendedData()

parent 71438694
No related branches found
No related tags found
No related merge requests found
...@@ -324,6 +324,8 @@ class Requests_ApprovalActionQueueModel extends Requests_ApprovalActionModel ...@@ -324,6 +324,8 @@ class Requests_ApprovalActionQueueModel extends Requests_ApprovalActionModel
continue; continue;
} }
$date = new Zend_Date(); $date = new Zend_Date();
$date->setDay(1);
$date->setYear($dateParts['year']); $date->setYear($dateParts['year']);
$date->setMonth($dateParts['month']); $date->setMonth($dateParts['month']);
$date->setDay($dateParts['day']); $date->setDay($dateParts['day']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment