Skip to content

Commit d2b5186

Browse files
authored
Merge pull request #321 from dregad/php-warnings
Fix PHP warnings
2 parents d62df71 + 09b6602 commit d2b5186

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

helper/actiontemplate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ protected function buildThankYouPage($thanks) {
344344
$last_folder[$n] = array(
345345
'id' => substr($ID, 0, strpos($ID, ':', ($n > 0 ? strlen($last_folder[$n - 1]['id']) : 0) + 1) + 1),
346346
'level' => $n + 1,
347-
'open' => 1
347+
'open' => 1,
348+
'type' => null,
348349
);
349350
$data[] = $last_folder[$n];
350351
}

syntax.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ private function _handlepost($data) {
310310
foreach($data['fields'] as $index => $field) {
311311
/** @var $field helper_plugin_bureaucracy_field */
312312

313+
if($field->getFieldType() === 'submit') {
314+
continue;
315+
}
316+
313317
$isValid = true;
314318
if($field->getFieldType() === 'file') {
315319
$file = array();

0 commit comments

Comments
 (0)