Commit c5139f9f authored by François Jacquet's avatar François Jacquet
Browse files

Add space after type casting (array)

parent 65b6ebda
......@@ -84,7 +84,7 @@ function jqPlotChart( $type, $data, $title, $save_image = true )
$seriesLabels = array_keys( $data );
foreach ( (array)$seriesLabels as $key => $seriesLabel )
foreach ( (array) $seriesLabels as $key => $seriesLabel )
{
$seriesLabels[$key] = "{label:" . json_encode( $seriesLabel ) . "}";
}
......@@ -96,7 +96,7 @@ function jqPlotChart( $type, $data, $title, $save_image = true )
else
$dataSeries = array( $data );
foreach ( (array)$dataSeries as $data )
foreach ( (array) $dataSeries as $data )
{
$seriesData = array();
......
......@@ -14,7 +14,7 @@ function MailingLabel($address_id)
if (count($people_RET))
{
foreach ( (array)$people_RET as $people)
foreach ( (array) $people_RET as $people)
{
$people_total = count($people);
for ( $i=1;$i<$people_total;$i++)
......
......@@ -359,12 +359,12 @@ function makePublishingVisibleTo($profiles, $THIS_RET, $id)
if (count($teachers_RET))
{
foreach ( (array)$teachers_RET as $teacher)
foreach ( (array) $teachers_RET as $teacher)
$teachers[$teacher['STAFF_ID']] = $teacher['LAST_NAME'].', '.$teacher['FIRST_NAME'];
}
$i=0;
foreach ( (array)$profiles as $profile)
foreach ( (array) $profiles as $profile)
{
$i++;
$checked = mb_strpos($THIS_RET['PUBLISHED_PROFILES'],','.$profile['ID'].',')!==false;
......
......@@ -156,7 +156,7 @@ function _makeSelectInput( $column, $name, $request )
if ( $field['SELECT_OPTIONS'] )
$select_options = explode( '<br />', nl2br( $field['SELECT_OPTIONS'] ) );
foreach ( (array)$select_options as $option )
foreach ( (array) $select_options as $option )
{
if ( $field['TYPE'] === 'codeds' )
{
......@@ -234,7 +234,7 @@ function _makeAutoSelectInput( $column, $name, $request )
if ( $field['SELECT_OPTIONS'] )
$select_options = explode( '<br />', nl2br( $field['SELECT_OPTIONS'] ) );
foreach ( (array)$select_options as $option )
foreach ( (array) $select_options as $option )
{
if ( $option != '' )
$options[$option] = $option;
......@@ -290,7 +290,7 @@ function _makeAutoSelectInput( $column, $name, $request )
$options_RET = DBGet( DBQuery( $options_SQL ) );
foreach ( (array)$options_RET as $option )
foreach ( (array) $options_RET as $option )
{
if ( $option['CUSTOM_' . $field['ID']] != ''
&& !$options[$option['CUSTOM_' . $field['ID']]] )
......@@ -444,7 +444,7 @@ function _makeMultipleInput( $column, $name, $request )
if ( $field['SELECT_OPTIONS'] )
$select_options = explode( '<br />', nl2br( $field['SELECT_OPTIONS'] ) );
foreach ( (array)$select_options as $option )
foreach ( (array) $select_options as $option )
{
$options[$option] = $option;
}
......@@ -469,7 +469,7 @@ function _makeMultipleInput( $column, $name, $request )
$i = 0;
foreach ( (array)$options as $option )
foreach ( (array) $options as $option )
{
if ( $i%2 === 0 )
$table .= '</tr><tr>';
......@@ -680,7 +680,7 @@ function _makeStartInput( $value, $column )
AND TYPE='Add'
ORDER BY SORT_ORDER" ) );
foreach ( (array)$options_RET as $option )
foreach ( (array) $options_RET as $option )
{
$add_codes[$option['ID']] = $option['TITLE'];
}
......@@ -741,7 +741,7 @@ function _makeEndInput( $value, $column )
AND TYPE='Drop'
ORDER BY SORT_ORDER" ) );
foreach ( (array)$options_RET as $option )
foreach ( (array) $options_RET as $option )
{
$drop_codes[$option['ID']] = $option['TITLE'];
}
......@@ -793,7 +793,7 @@ function _makeSchoolInput( $value, $column )
WHERE SYEAR='" . UserSyear() . "'" ), array(), array( 'ID' ) );
}
foreach ( (array)$schools as $sid => $school )
foreach ( (array) $schools as $sid => $school )
{
$options[$sid] = $school[1]['TITLE'];
}
......
......@@ -121,13 +121,13 @@ function _update29alpha()
$SQL_updt_coms = '';
foreach ( (array)$comments_RET as $comment )
foreach ( (array) $comments_RET as $comment )
{
$coms = explode( '||', $comment['COMMENT'] );
$ser_coms = array();
$i = 0;
foreach ( (array)$coms as $com )
foreach ( (array) $coms as $com )
{
if ( is_array( list( $date, $staff_id ) = explode( '|', $com ) )
&& (int)$staff_id > 0 )
......
......@@ -44,7 +44,7 @@ function _makeLetterGrade( $percent, $course_period_id = 0, $staff_id = 0, $ret
AND PROGRAM='Gradebook'" ), array(), array( 'TITLE' ) );
if ( count( $config_RET ) )
foreach ( (array)$config_RET as $title => $value )
foreach ( (array) $config_RET as $title => $value )
$programconfig[$staff_id][$title] = $value[1]['VALUE'];
else
$programconfig[$staff_id] = true;
......@@ -95,7 +95,7 @@ function _makeLetterGrade( $percent, $course_period_id = 0, $staff_id = 0, $ret
if ( $does_breakoff == 'Y'
&& is_array( $programconfig[$staff_id] ) )
{
foreach ( (array)$_ROSARIO['_makeLetterGrade']['grades'][$grade_scale_id] as $grade )
foreach ( (array) $_ROSARIO['_makeLetterGrade']['grades'][$grade_scale_id] as $grade )
{
if ( is_numeric($programconfig[$staff_id][$course_period_id.'-'.$grade['ID']])
&& $percent >= $programconfig[$staff_id][$course_period_id . '-' . $grade['ID']] )
......@@ -105,7 +105,7 @@ function _makeLetterGrade( $percent, $course_period_id = 0, $staff_id = 0, $ret
}
}
foreach ( (array)$_ROSARIO['_makeLetterGrade']['grades'][$grade_scale_id] as $grade )
foreach ( (array) $_ROSARIO['_makeLetterGrade']['grades'][$grade_scale_id] as $grade )
{
if ( $percent >= $grade['BREAK_OFF'] )
//FJ use Report Card Grades comments
......
......@@ -12,7 +12,7 @@ function _makePercentGrade($grade_id,$course_period_id=0,$staff_id=0)
{
$config_RET = DBGet(DBQuery("SELECT TITLE,VALUE FROM PROGRAM_USER_CONFIG WHERE USER_ID='".$staff_id."' AND PROGRAM='Gradebook'"),array(),array('TITLE'));
if (count($config_RET))
foreach ( (array)$config_RET as $title => $value)
foreach ( (array) $config_RET as $title => $value)
$programconfig[$staff_id][$title] = $value[1]['VALUE'];
else
$programconfig[$staff_id] = true;
......@@ -26,7 +26,7 @@ function _makePercentGrade($grade_id,$course_period_id=0,$staff_id=0)
$_ROSARIO['_makeLetterGrade']['grades'][$grade_scale_id] = DBGet(DBQuery("SELECT TITLE,ID,BREAK_OFF FROM REPORT_CARD_GRADES WHERE SYEAR='".UserSyear()."' AND SCHOOL_ID='".UserSchool()."' AND GRADE_SCALE_ID='".$grade_scale_id."' ORDER BY BREAK_OFF IS NOT NULL DESC,BREAK_OFF DESC,SORT_ORDER"));
//$grades = array('A+','A','A-','B+','B','B-','C+','C','C-','D+','D','D-','F');
foreach ( (array)$_ROSARIO['_makeLetterGrade']['grades'][$grade_scale_id] as $grade)
foreach ( (array) $_ROSARIO['_makeLetterGrade']['grades'][$grade_scale_id] as $grade)
{
$prev = $crnt;
$crnt = ($does_breakoff=='Y' ? $programconfig[$staff_id][$course_period_id.'-'.$grade['ID']] : $grade['BREAK_OFF']);
......
......@@ -173,8 +173,8 @@ function do_action( $tag, $arg = '' )
//check if tag exists
if ( array_key_exists( (string) $tag, $RosarioActions ) )
{
foreach ( (array)$RosarioActions[$tag] as $functions )
foreach ( (array)$functions as $function => $accepted_args )
foreach ( (array) $RosarioActions[$tag] as $functions )
foreach ( (array) $functions as $function => $accepted_args )
if ( !is_null( $function ) )
call_user_func_array( $function, array_slice( $args, 0, (int) $accepted_args ) );
}
......
......@@ -31,7 +31,7 @@ function CustomFields( $location, $type = 'student', $extra = array() )
// unset empty values
$cust = array();
foreach ( (array)$_REQUEST['cust'] as $key => $value )
foreach ( (array) $_REQUEST['cust'] as $key => $value )
{
if ( $value !== '' )
$cust[$key] = $_REQUEST['cust'][$key];
......@@ -53,7 +53,7 @@ function CustomFields( $location, $type = 'student', $extra = array() )
}
// Add begin Number
$cust_begin += (array)$_REQUEST['custb'];
$cust_begin += (array) $_REQUEST['custb'];
// Format & Verify end dates
......@@ -71,18 +71,18 @@ function CustomFields( $location, $type = 'student', $extra = array() )
}
// Add end Number
$cust_end += (array)$_REQUEST['custe'];
$cust_end += (array) $_REQUEST['custe'];
// Get custom (staff) fields
if ( count( $cust )
|| count( $cust_begin )
|| count( $cust_end )
|| count( (array)$_REQUEST['custn'] ) )
|| count( (array) $_REQUEST['custn'] ) )
$fields = ParseMLArray( DBGet( DBQuery( "SELECT TITLE,ID,TYPE,SELECT_OPTIONS
FROM " . ( $type === 'staff' ? 'STAFF' : 'CUSTOM' ) . "_FIELDS" ), array(), array( 'ID' ) ), 'TITLE' );
foreach ( (array)$cust as $field_name => $value )
foreach ( (array) $cust as $field_name => $value )
{
$field_id = mb_substr( $field_name, 7 );
......@@ -136,7 +136,7 @@ function CustomFields( $location, $type = 'student', $extra = array() )
{
$select_options = explode( '<br />', nl2br( $fields[$field_id][1]['SELECT_OPTIONS'] ) );
foreach ( (array)$select_options as $option )
foreach ( (array) $select_options as $option )
{
$option = explode( '|', $option );
......@@ -240,7 +240,7 @@ function CustomFields( $location, $type = 'student', $extra = array() )
}
// Begin Dates / Number
foreach ( (array)$cust_begin as $field_name => $value )
foreach ( (array) $cust_begin as $field_name => $value )
{
$field_id = mb_substr( $field_name, 7 );
......@@ -269,7 +269,7 @@ function CustomFields( $location, $type = 'student', $extra = array() )
}
// End Dates / Number
foreach ( (array)$cust_end as $field_name => $value )
foreach ( (array) $cust_end as $field_name => $value )
{
$field_id = mb_substr( $field_name, 7 );
......@@ -298,7 +298,7 @@ function CustomFields( $location, $type = 'student', $extra = array() )
}
// No Value for Dates & Number
foreach ( (array)$_REQUEST['custn'] as $field_name => $y )
foreach ( (array) $_REQUEST['custn'] as $field_name => $y )
{
$field_id = mb_substr( $field_name, 7 );
......
......@@ -53,7 +53,7 @@ function DBGet( $QI, $functions = array(), $index = array() )
{
$ind = '';
foreach ( (array)$index as $col )
foreach ( (array) $index as $col )
{
$ind .= "['" . str_replace( "'", "\'", $THIS_RET[$col] ) . "']";
}
......@@ -72,7 +72,7 @@ function DBGet( $QI, $functions = array(), $index = array() )
else
$s++; // 1-based if no index specified
foreach ( (array)$RET as $key => $value )
foreach ( (array) $RET as $key => $value )
{
if ( array_key_exists( $key, $functions )
&& function_exists( $functions[$key] ) )
......
......@@ -184,7 +184,7 @@ function PrepareDate( $date, $name_attr = '', $allow_na = true, $options = array
// Add year / month / day parameters to href
$add_args_js = array();
foreach ( (array)$URL_args as $URL_arg )
foreach ( (array) $URL_args as $URL_arg )
{
$add_args_js[] = '(this.form.' . $URL_arg . ' ? \'&' . $URL_arg . '=\' + this.form.' . $URL_arg . '.value : \'\')';
}
......@@ -249,7 +249,7 @@ function PrepareDate( $date, $name_attr = '', $allow_na = true, $options = array
$month_char = MonthNWSwitch( $date_exploded['month'], 'tochar' );
foreach ( (array)$months_locale as $key => $name )
foreach ( (array) $months_locale as $key => $name )
$return .= '<option value="' . $key . '"' . ( $month_char == $key ? ' selected' : '' ) . '>' . $name;
$return .= '</select>';
......@@ -445,7 +445,7 @@ function RequestedDates( $day_array, $month_array, $year_array )
{
$return = array();
foreach ( (array)$month_array as $field_name => $month )
foreach ( (array) $month_array as $field_name => $month )
{
if ( !is_array( $month ) )
{
......
......@@ -57,7 +57,7 @@ function ErrorMessage( $errors, $code = 'error' )
{
$return .= '</p><ul>';
foreach ( (array)$errors as $error )
foreach ( (array) $errors as $error )
{
$return .= '<li>' . $error . '</li>';
}
......
......@@ -114,7 +114,7 @@ function GetAllMP( $mp, $marking_period_id = '0' )
{
case 'PRO':
foreach ( (array)$qtr_RET as $qtr )
foreach ( (array) $qtr_RET as $qtr )
{
$qtr_id = $qtr['MARKING_PERIOD_ID'];
......@@ -130,7 +130,7 @@ function GetAllMP( $mp, $marking_period_id = '0' )
case 'QTR':
foreach ( (array)$qtr_RET as $qtr )
foreach ( (array) $qtr_RET as $qtr )
{
$qtr_id = $qtr['MARKING_PERIOD_ID'];
......@@ -141,11 +141,11 @@ function GetAllMP( $mp, $marking_period_id = '0' )
case 'SEM':
foreach ( (array)$qtr_RET as $sem => $qtrs )
foreach ( (array) $qtr_RET as $sem => $qtrs )
{
$all_mp[$mp][$sem] = "'" . $fy . "','" . $sem . "'";
foreach ( (array)$qtrs as $qtr )
foreach ( (array) $qtrs as $qtr )
{
$all_mp[$mp][$sem] .= ",'" . $qtr['MARKING_PERIOD_ID'] . "'";
}
......@@ -153,7 +153,7 @@ function GetAllMP( $mp, $marking_period_id = '0' )
$sem_RET = DBGet( DBQuery( $sem_SQL ) );
foreach ( (array)$sem_RET as $sem )
foreach ( (array) $sem_RET as $sem )
{
$sem_id = $sem['MARKING_PERIOD_ID'];
......@@ -167,11 +167,11 @@ function GetAllMP( $mp, $marking_period_id = '0' )
// there should be exactly one fy marking period which better be $marking_period_id
$all_mp[$mp][$marking_period_id] = "'" . $marking_period_id . "'";
foreach ( (array)$qtr_RET as $sem => $qtrs )
foreach ( (array) $qtr_RET as $sem => $qtrs )
{
$all_mp[$mp][$marking_period_id] .= ",'" . $sem . "'";
foreach ( (array)$qtrs as $qtr )
foreach ( (array) $qtrs as $qtr )
{
$all_mp[$mp][$marking_period_id] .= ",'" . $qtr['MARKING_PERIOD_ID'] . "'";
}
......@@ -179,7 +179,7 @@ function GetAllMP( $mp, $marking_period_id = '0' )
$sem_RET = DBGet( DBQuery( $sem_SQL ) );
foreach ( (array)$sem_RET as $sem )
foreach ( (array) $sem_RET as $sem )
{
$all_mp[$mp][$marking_period_id] .= ",'" . $sem['MARKING_PERIOD_ID'] . "'";
}
......@@ -283,11 +283,11 @@ function GetChildrenMP( $mp, $marking_period_id = '0' )
$qtr_RET = DBGet( DBQuery( $qtr_SQL ), array(), array( 'PARENT_ID' ) );
foreach ( (array)$qtr_RET as $sem => $qtrs )
foreach ( (array) $qtr_RET as $sem => $qtrs )
{
$children_mp[$mp]['0'] .= ",'" . $sem . "'";
foreach ( (array)$qtrs as $qtr )
foreach ( (array) $qtrs as $qtr )
{
$children_mp[$mp]['0'] .= ",'" . $qtr['MARKING_PERIOD_ID'] . "'";
}
......@@ -303,9 +303,9 @@ function GetChildrenMP( $mp, $marking_period_id = '0' )
$qtr_RET = DBGet( DBQuery( $qtr_SQL ), array(), array( 'PARENT_ID' ) );
foreach ( (array)$qtr_RET as $sem => $qtrs )
foreach ( (array) $qtr_RET as $sem => $qtrs )
{
foreach ( (array)$qtrs as $qtr )
foreach ( (array) $qtrs as $qtr )
{
$children_mp[$mp][$sem] .= ",'" . $qtr['MARKING_PERIOD_ID'] . "'";
}
......@@ -329,9 +329,9 @@ function GetChildrenMP( $mp, $marking_period_id = '0' )
AND SYEAR='" . UserSyear() . "'
AND SCHOOL_ID='" . UserSchool() . "'"), array(), array( 'PARENT_ID' ) );
foreach ( (array)$pro_RET as $qtr => $pros )
foreach ( (array) $pro_RET as $qtr => $pros )
{
foreach ( (array)$pros as $pro )
foreach ( (array) $pros as $pro )
{
$children_mp[$mp][$qtr] .= ",'" . $pro['MARKING_PERIOD_ID'] . "'";
}
......
......@@ -36,7 +36,7 @@ function GetStaffList(& $extra)
WHERE ((SELECT VALUE FROM PROGRAM_USER_CONFIG WHERE TITLE=cast(cf.ID AS TEXT) AND PROGRAM='StaffFieldsView' AND USER_ID='".User('STAFF_ID')."')='Y'".($extra['staff_fields']['view']?" OR cf.ID IN (".$extra['staff_fields']['view'].")":'').")
ORDER BY cf.SORT_ORDER,cf.TITLE"));
foreach ( (array)$view_fields_RET as $field)
foreach ( (array) $view_fields_RET as $field)
{
$extra['columns_after']['CUSTOM_'.$field['ID']] = $field['TITLE'];
if ( $field['TYPE']=='date')
......@@ -59,7 +59,7 @@ function GetStaffList(& $extra)
if ( $extra['staff_fields']['view'])
{
$view_fields_RET = DBGet(DBQuery("SELECT cf.ID,cf.TYPE,cf.TITLE FROM STAFF_FIELDS cf WHERE cf.ID IN (".$extra['staff_fields']['view'].") ORDER BY cf.SORT_ORDER,cf.TITLE"));
foreach ( (array)$view_fields_RET as $field)
foreach ( (array) $view_fields_RET as $field)
{
$extra['columns_after']['CUSTOM_'.$field['ID']] = $field['TITLE'];
if ( $field['TYPE']=='date')
......
......@@ -129,7 +129,7 @@ function GetStuList( &$extra = array() )
$select = '';
foreach ( (array)$custom_fields_RET as $field)
foreach ( (array) $custom_fields_RET as $field)
{
$extra['columns_after'] = array(
'CUSTOM_' . $field['ID'] => ParseMLField( $field['TITLE'] ) )
......@@ -252,7 +252,7 @@ function GetStuList( &$extra = array() )
$_REQUEST['addr'] = $addr;
}
foreach ( (array)$view_fields_RET as $field )
foreach ( (array) $view_fields_RET as $field )
{
$field_key = 'CUSTOM_' . $field['ID'];
$extra['columns_after'][$field_key] = $field['TITLE'];
......@@ -353,7 +353,7 @@ function GetStuList( &$extra = array() )
WHERE cf.ID IN (" . $extra['student_fields']['view'] . ")
ORDER BY cf.SORT_ORDER,cf.TITLE" ) );
foreach ( (array)$view_fields_RET as $field )
foreach ( (array) $view_fields_RET as $field )
{
$field_key = 'CUSTOM_' . $field['ID'];
......@@ -690,7 +690,7 @@ function makeContactInfo( $student_id, $column )
{
$tipmsg = '';
foreach ( (array)$contacts_RET[$student_id] as $person )
foreach ( (array) $contacts_RET[$student_id] as $person )
{
if ( $person[1]['FIRST_NAME'] || $person[1]['LAST_NAME'] )
{
......@@ -706,7 +706,7 @@ function makeContactInfo( $student_id, $column )
'</span></td><td>' . $person[1]['PHONE'] . '</td></tr>';
}
foreach ( (array)$person as $info )
foreach ( (array) $person as $info )
{
if ( $info['TITLE']
|| $info['VALUE'] )
......@@ -835,7 +835,7 @@ function makeParents( $student_id, $column )
return '';
}
foreach ( (array)$people_RET as $person )
foreach ( (array) $people_RET as $person )
{
//FJ PrintClassLists with all contacts
if ( $person['CUSTODY'] == 'Y' )
......@@ -971,13 +971,13 @@ function appendSQL( $sql, $extra = array() )
if ( !$no_search_terms )
{
$_ROSARIO['SearchTerms'] .= '<b>' . ngettext( 'Grade', 'Grades', sizeof( $_REQUEST['grades'] ) ) .
$_ROSARIO['SearchTerms'] .= '<b>' . ngettext( 'Grade', 'Grades', count( $_REQUEST['grades'] ) ) .
': </b>' . ( $is_grades_not ? _( 'Excluded' ) . ' ' : '' );
}
$grade_list = $sep = '';
foreach ( (array)$_REQUEST['grades'] as $grade_id => $y )
foreach ( (array) $_REQUEST['grades'] as $grade_id => $y )
{
$grade_list .= $sep . "'" . $grade_id . "'";
......
......@@ -29,7 +29,7 @@ function DateInput( $value, $name, $title = '', $div = true, $allow_na = true, $
{
$id = GetInputID( $name );
$ftitle = FormatInputTitle( $title, '', $value === '' && $required );
$ftitle = FormatInputTitle( $title, '', $value == '' && $required );
if ( AllowEdit()
&& !isset( $_REQUEST['_ROSARIO_PDF'] ) )
......@@ -90,7 +90,7 @@ function TextInput( $value, $name, $title = '', $extra = '', $div = true )
{
$id = GetInputID( $name );
$required = $value === '' && mb_strpos( $extra, 'required' ) !== false;
$required = $value == '' && mb_strpos( $extra, 'required' ) !== false;
$ftitle = FormatInputTitle( $title, $id, $required );
......@@ -159,7 +159,7 @@ function MLTextInput( $value, $name, $title = '', $extra = '', $div = true )
{
global $RosarioLocales;
if ( sizeof( $RosarioLocales ) < 2 )
if ( count( $RosarioLocales ) < 2 )
{
return TextInput( $value, $name, $title, $extra, $div );
}
......@@ -216,7 +216,7 @@ function setMLvalue(id, loc, value){
$return .= '<div class="ml-text-input"><input type="hidden" id="' . $id . '" name="' . $name . '" value="' . $value . '" />';
foreach ( (array)$RosarioLocales as $key => $loc )
foreach ( (array) $RosarioLocales as $key => $loc )
{
$return .= '<label><img src="assets/flags/' . $loc . '.png" class="button bigger" /> ';
......@@ -273,7 +273,7 @@ function TextAreaInput( $value, $name, $title = '', $extra = '', $div = true, $m
{
$id = GetInputID( $name );
$required = $value === '' && mb_strpos( $extra, 'required' ) !== false;
$required = $value == '' && mb_strpos( $extra, 'required' ) !== false;
$ftitle = FormatInputTitle( $title, $id, $required );
......@@ -470,7 +470,7 @@ function SelectInput( $value, $name, $title = '', $options = array(), $allow_na
{
$id = GetInputID( $name );
$required = $value === '' && mb_strpos( $extra, 'required' ) !== false;
$required = $value == '' && mb_strpos( $extra, 'required' ) !== false;
$ftitle = FormatInputTitle( $title, $id, $required );
......@@ -498,7 +498,7 @@ function SelectInput( $value, $name, $title = '', $options = array(), $allow_na
$select .= '<option value="">' . ( $allow_na === 'N/A' ? _( 'N/A' ) : $allow_na ) . '</option>';
}
foreach ( (array)$options as $key => $val )
foreach ( (array) $options as $key => $val )
{
$selected = '';
......@@ -590,14 +590,14 @@ function MLSelectInput( $value, $name, $title = '', $options, $allow_na = 'N/A',
global $RosarioLocales,
$locale;
if ( sizeof( $RosarioLocales ) < 2 )
if ( count( $RosarioLocales ) < 2 )
{
return SelectInput( $value, $name, $title, $options, $div );
}
$id = GetInputID( $name );