Skip to content
Snippets Groups Projects
Commit c3e20b64 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #44524 fix fatal error

parent e44bf4f8
Branches
Tags
1 merge request!1682Dev#44524 openings validity ranges
......@@ -94,8 +94,12 @@ class Admin_OuverturesController extends ZendAfi_Controller_Action {
if(Class_Ouverture::AUCUN_JOUR != $post['jour_semaine'])
$post['jour'] = null;
$post['validity_start'] = $this->_getSQLDateFrom($post['validity_start']);
$post['validity_end'] = $this->_getSQLDateFrom($post['validity_end']);
$post['validity_start'] = isset($post['validity_start'])
? $this->_getSQLDateFrom($post['validity_start'])
: '';
$post['validity_end'] = isset($post['validity_end'])
? $this->_getSQLDateFrom($post['validity_end'])
: '';
return $post;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment