fixed code sniffer reported errors

This commit is contained in:
Jonathan Labreuille
2016-07-01 14:17:39 +02:00
parent a8ffbc2d0e
commit fe154d9251
3 changed files with 11 additions and 11 deletions

View File

@ -225,9 +225,9 @@ class Pages {
if($custom_field['type'] === 'date') {
$date_formats = FormBlockDate::getDateFormats();
$custom_field['params']['date_format'] = $date_formats[
$custom_field['params']['date_type']
][0];
$custom_field['params']['date_format'] = array_shift(
$date_formats[$custom_field['params']['date_type']]
);
}
return $custom_field;