mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Changing ternary operator usage syntax to be compliant with php 5.2 and below
This commit is contained in:
parent
e0abe99d7d
commit
8dfadafc88
1 changed files with 4 additions and 4 deletions
|
@ -909,7 +909,7 @@ class FormHelper extends AppHelper {
|
|||
}
|
||||
|
||||
$out['input'] = $input;
|
||||
$format = $format ?: array('before', 'label', 'between', 'input', 'after', 'error');
|
||||
$format = $format ? $format : array('before', 'label', 'between', 'input', 'after', 'error');
|
||||
$output = '';
|
||||
foreach ($format as $element) {
|
||||
$output .= $out[$element];
|
||||
|
|
Loading…
Add table
Reference in a new issue