upgraded php from 5.2.x --> 5.3.x and dolphin 6.1.x has some issues with the version of php. i have worked out most by ~E_DEPRECATED, but this one is something i cant figure out how to get rid of:
Warning: substr() expects parameter 1 to be string, array in /path/to/templates/base/scripts/BxBaseFormView.php line 508
LINE 508 --> $bUseRekey = ( substr($aInput['Values'], 0, 2) == '#!') ? false : true;
switch( $aInput['Control'] ) {
case 'select':
$sCode = '<select class="input_select" name="' . $aInput['Name'] . '">';
foreach( $aValues as $sKey => $sValue ) {
$sSelected = ( $aInput['Value'] == $sKey ) ? ' selected="selected"' : '';
$sLFKey = ($sValue != '_Select it' && $bUseRekey) ? '_FieldValues' . $sValue : $sValue;
$sCode .= '
<option value="' . $this -> value2html( $sKey ) . '"' . $sSelected . '>' .
$this -> value2html( _t( $sLFKey ) ) .
'</option>';
}
$sCode .= '</select>';
break;
the entire function: starts at line 497 on Dolphin 6.1.6 and 6.1.6
need to know what needs to be done here to work on php 5.3.x