We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb04b4 commit 109f17bCopy full SHA for 109f17b
fix_php5.6_compatibility.patch
@@ -0,0 +1,13 @@
1
+--- /app/public/sites/all/modules/webform/components/time.inc
2
++++ /app/public/sites/all/modules/webform/components/time.inc
3
+@@ -733,7 +733,7 @@
4
+ */
5
+ function _webform_submit_time($component, $value) {
6
+ // Convert to 24-hour time before string conversion.
7
+ if ($component['extra']['hourformat'] == '12-hour') {
8
+ $value = webform_time_convert($value, '24-hour');
9
+ }
10
+
11
+- return ($value['hour'] ?? '') !== '' ? webform_date_string($value, 'time') : '';
12
++ return isset($value['hour']) && $value['hour'] !== '' ? webform_date_string($value, 'time') : '';
13
0 commit comments