@@ 412-417 (lines=6) @@ | ||
409 | ||
410 | // Check inputs |
|
411 | $fields = trim($_REQUEST['fields']); |
|
412 | if ('' == trim($_REQUEST['name'])) { |
|
413 | $_REQUEST['stage'] = 1; |
|
414 | $this->doCreateComposite($this->lang['strtypeneedsname']); |
|
415 | ||
416 | return; |
|
417 | } |
|
418 | if ('' == $fields || !is_numeric($fields) || $fields != (int) $fields || $fields < 1) { |
|
419 | $_REQUEST['stage'] = 1; |
|
420 | $this->doCreateComposite($this->lang['strtypeneedscols']); |
|
@@ 492-497 (lines=6) @@ | ||
489 | ||
490 | // Check inputs |
|
491 | $fields = trim($_REQUEST['fields']); |
|
492 | if ('' == trim($_REQUEST['name'])) { |
|
493 | $_REQUEST['stage'] = 1; |
|
494 | $this->doCreateComposite($this->lang['strtypeneedsname']); |
|
495 | ||
496 | return; |
|
497 | } |
|
498 | if ('' == $fields || !is_numeric($fields) || $fields != (int) $fields || $fields <= 0) { |
|
499 | $_REQUEST['stage'] = 1; |
|
500 | $this->doCreateComposite($this->lang['strtypeneedscols']); |