A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

array( array( 'field' => 'identity', 'label' => 'Email Address', 'rules' => 'trim|required|valid_email'), array( 'field' => 'password', 'Label' => 'Password', 'rules' => 'required') ), 'admin_profile' => array( array( 'field' => 'first_name', 'label' => 'First Name', 'rules' => 'required|xss_clean' ), array( 'field' => 'last_name', 'label' => 'Last Name', 'rules' => 'required|xss_clean' ), array( 'field' => 'email', 'label' => 'Email Address', 'rules' => 'required|xss_clean' ), array( 'field' => 'phone', 'label' => 'Phone', 'rules' => 'required|xss_clean|min_length[7]|max_length[12]' ), array( 'field' => 'company', 'label' => 'Company Name', 'rules' => 'required|xss_clean' ) ), 'profile' => array( array( 'field' => 'c_fname', 'label' => 'First name', 'rules' => 'trim|required' ), array( 'field' => 'c_lname', 'label' => 'last Name', 'rules' => 'trim|required' ), array( 'field' => 'c_email', 'label' => 'Email', 'rules' => 'required|trim|valid_email' ), array( 'field' => 'c_district', 'label' => 'District', 'rules' => 'required'), array( 'field' => 'c_local', 'label' => 'Town', 'rules' => 'required'), array( 'field' => 'c_address', 'label' => 'Address', 'rules' => 'trim|required'), array( 'field' => 'c_phone', 'label' => 'Phone Number', 'rules' => 'trim|required') ), 'company_registration' => array( array( 'field' => 'comp_name', 'label' => 'Company Name', 'rules' => 'required|trim'), array( 'field' => 'comp_reg_num', 'label' => 'Company Registration Number', 'rules' => 'trim|required|is_unique[company_info.comp_reg_num]'), array( 'field' => 'comp_type', 'label' => 'Company Type', 'rules' => 'trim|required'), array( 'field' => 'comp_main_eco[]', 'label' => 'Main Economic activity', 'rules' => 'required'), array( 'field' => 'comp_address', 'label' => 'Company Address', 'rules' => 'trim|required'), array( 'field' => 'comp_email', 'label' => 'Company Email', 'rules' => 'trim|required|valid_email'), array( 'field' => 'comp_phone', 'label' => 'Company phone', 'rules' => 'trim|required'), array( 'field' => 'comp_website', 'label' => 'Company Website', 'rules' => 'prep_url'), array( 'field' => 'comp_num_facility', 'label' => 'Total Number of facilities', 'rules' => 'trim|required'), array( 'field' => 'comp_num_employees', 'label' => 'Total Number of employees', 'rules' => 'trim|required'), array( 'field' => 'comp_dec_release[]', 'label' => 'Declaration of releases', 'rules' => 'required'), array( 'field' => 'comp_haz_wa', 'label' => 'Generation of Hazardous Waste', 'rules' => 'required'), array( 'field' => 'day', 'label' => 'Date', 'rules' => 'required'), array( 'field' => 'month', 'label' => 'Month', 'rules' => 'required'), array( 'field' => 'year', 'label' => 'Year', 'rules' => 'required'), array( 'field' => 'c_fname', 'label' => 'Contact First name', 'rules' => 'trim|required'), array( 'field' => 'c_lname', 'label' => 'Contact Last name', 'rules' => 'trim|required'), array( 'field' => 'c_email', 'label' => 'Contact Email', 'rules' => 'trim|required|vaild_email') ), 'add_facility' => array( array( 'field' => 'fac_name', 'label' => 'Facility name', 'rules' => 'required|trim'), array( 'field' => 'fac_address', 'label' => 'Facility address', 'rules' => 'required|trim'), array( 'field' => 'fac_email', 'label' => 'Facility Email', 'rules' => 'required|trim|valid_email'), array( 'field' => 'fac_phone', 'label' => 'Facility Phone', 'rules' => 'required|required'), array( 'field' => 'fac_fax', 'label' => 'Facility Fax', 'rules' => 'trim'), array( 'field' => 'fac_website', 'label' => 'Facility Website', 'rules' => 'trim|prep_url'), array( 'field' => 'fac_pro_capacity', 'label' => 'Facility Capacity', 'rules' => 'trim|required'), array( 'field' => 'fac_emp_total', 'label' => 'Facility Employees Total', 'rules' => 'trim|required|integer'), array( 'field' => 'fac_annual_hr', 'label' => 'Annual', 'rules' => 'trim|required|integer'), array( 'field' => 'c_fname', 'label' => 'First Name', 'rules' => 'trim|required'), array( 'field' => 'c_lname', 'label' => 'Last Name', 'rules' => 'trim|required'), array( 'field' => 'c_email', 'label' => 'Contact Email', 'rules' => 'trim|vaild_email'), array( 'field' => 'c_address', 'label' => 'Contact Address', 'rules' => 'trim|required'), array( 'field' => 'c_phone', 'label' => 'Contact Phone', 'rules' => 'trim|required') ), 'raw_materials' => array( array( 'field' => 'rm_name[]', 'label' => 'Raw Material', 'rules' => 'trim|required'), array( 'field' => 'rm_trade_name[]', 'label' => 'Trade Name', 'rules' => 'trim|required'), array( 'field' => 'rm_place_consum[]', 'label' => 'Place', 'rules' => 'trim|required'), array( 'field' => 'rm_storage[]', 'label' => 'Storage', 'rules' => 'trim|required'), array( 'field' => 'rm_amount_consum[]', 'label' => 'Amount consume', 'rules' => 'trim|required') ), 'input_used' => array( array( 'field' => 'ui_name[]', 'label' => 'Name', 'rules' => 'trim|required'), array( 'field' => 'ui_trade_name[]', 'label' => 'Trade name', 'rules' => 'trim|required'), array( 'field' => 'ui_place_consum[]', 'label' => 'Place', 'rules' => 'trim|required'), array( 'field' => 'ui_storage[]', 'label' => 'Storage', 'rules' => 'trim|required'), array( 'field' => 'ui_amount_consum[]', 'label' => 'Amount', 'rules' => 'trim|required') ), 'product' => array( array( 'field' => 'p_name[]', 'label' => 'Name', 'rules' => 'trim|required'), array( 'field' => 'p_production[]', 'label' => 'Production', 'rules' => 'trim|required'), array( 'field' => 'p_phys_state[]', 'label' => 'Physical', 'rules' => 'trim|required'), array( 'field' => 'p_storage[]', 'label' => 'Storage', 'rules' => 'trim|required') ), 'output' => array( array( 'field' => 'o_name[]', 'label' => 'Name', 'rules' => 'trim|required'), array( 'field' => 'o_production_unit[]', 'label' => 'Production', 'rules' => 'trim|required'), array( 'field' => 'o_phys_state[]', 'label' => 'State', 'rules' => 'trim|required'), array( 'field' => 'o_storage[]', 'label' => 'Storage', 'rules' => 'trim|required') ), 'water_consumption' => array(array('field' => 'w_source', 'label' => 'Source', 'rules' => 'trim|required'), array('field' => 'w_amount', 'label' => 'Amount', 'rules' => 'trim|required'), array('field' => 'w_amount_unit', 'label' => 'Unit', 'rules' => 'required')), 'energy_fuel' => array(array('field' => 'enec_type', 'label' => 'Type', 'rules' => 'trim|required'), array('field' => 'enec_unit', 'label' => 'Unit', 'rules' => 'trim|required'), array('field' => 'enec_total', 'label' => 'Total', 'rules' => 'trim|required')), 'energy_consumption' => array(array('field' => 'enee_source', 'label' => 'Source', 'rules' => 'trim|required'), array('field' => 'enee_amount', 'label' => 'Amount', 'rules' => 'trim|required'), array('field' => 'enee_unit', 'label' => 'Unit', 'rules' => 'required')), 'energy_equipment' => array(array('field' => 'enep_process', 'label' => 'Process', 'rules' => 'trim|required'), array('field' => 'enep_equip', 'label' => 'Equipment', 'rules' => 'trim|required'), array('field' => 'enep_quantity', 'label' => 'Quantity', 'rules' => 'trim|required'), array('field' => 'enep_fab', 'label' => 'fabrication', 'rules' => 'trim|required'), array('field' => 'enep_type', 'label' => 'Type', 'rules' => 'required')), 'emisions' => array(array('field' => 'ras_discharge', 'label' => 'Discharge', 'rules' => 'trim|required'), array('field' => 'ras_pollutant', 'label' => 'Pollutant', 'rules' => 'required'), array('field' => 'ras_concentrate', 'label' => 'Concentration', 'rules' => 'trim|required'), array('field' => 'ras_method', 'label' => 'Method', 'rules' => 'trim|required')), 'air_emmision' => array(array('field' => 'rae_pollutant', 'label' => 'Pollutant', 'rules' => 'trim|required'), array('field' => 'rae_amount', 'label' => 'Amount', 'rules' => 'trim|required'), array('field' => 'rae_unit', 'label' => 'Unit', 'rules' => 'trim|required'), array('field' => 'rae_tech', 'label' => 'Technique', 'rules' => 'trim|required')), 'land' => array( array( 'field' => 'rld_pollutant', 'label' => 'Pollutant', 'rule' => 'trim|required'), array( 'field' => 'rld_dis_point', 'label' => 'Discharge field', 'rules' => 'trim|required'), array( 'field' => 'rld_amount', 'label' => 'Amount', 'rules' => 'trim|required'), array( 'field' => 'rld_unit', 'label' => 'Unit', 'rules' => 'required'), array( 'field' => 'rld_tech', 'label' => 'Technique', 'rules' => 'required') ), 'land_accident' => array( array( 'field' => 'rla_pollutant', 'label' => 'Pollutant', 'rules' => 'trim|required'), array( 'field' => 'rla_amount', 'label' => 'Amount', 'rules' => 'trim|required'), array( 'field' => 'rla_unit', 'label' => 'Unit', 'rules' => 'trim|required'), array( 'field' => 'rla_tech', 'label' => 'Technique', 'rules' => 'trim|required') ), 'accidents' => array( array( 'field' => 'rac_pollutant', 'label' => 'Pollutant', 'rules' => 'trim|required'), array( 'field' => 'rac_amount', 'label' => 'label', 'rules' => 'trim|required'), array( 'field' => 'rac_unit', 'label' => 'Unit', 'rules' => 'trim|required'), array( 'field' => 'rac_tech', 'label' => 'Technique', 'rules' => 'trim|required') ), 'water_discharge' => array( array( 'field' => 'rw_des_point', 'label' => 'Discharge Points', 'rules' => 'trim|required'), array( 'field' => 'rw_water_treat', 'label' => 'Water Treat', 'rules' => 'trim|required'), array( 'field' => 'rw_eff_dis_point', 'label' => 'Effluent Discharge Point', 'rules' => 'trim|required'), array( 'field' => 'rw_flow', 'label' => 'Flow', 'rules' => 'trim|required'), array( 'field' => 'rw_sampling_pollutant', 'label' => 'sampling Pollutant', 'rules' => 'trim|required'), array( 'field' => 'rw_sampling_concentration', 'label' => 'Sampling Concentration', 'rules' => 'required|trim'), array( 'field' => 'rw_sampling_method', 'label' => 'Sampling Method', 'rules' => 'required|trim'), array( 'field' => 'rw_discharge_pollutant', 'label' => 'Discharge Pollutant', 'rules' => 'required|trim'), array( 'field' => 'discharge_water_body', 'label' => 'Discharge Water Body', 'rules' => 'required|trim'), array( 'field' => 'rw_discharge_amount', 'label' => 'Discharge Amount', 'rules' => 'required|trim'), array( 'field' => 'rw_discharge_unit', 'label' => 'Discharge Unit', 'rules' => 'required'), array( 'field' => 'rw_discharge_tech', 'label' => 'Waste water estimation technique', 'rules' => 'required'), array( 'field' => 'rw_acc_pollutant', 'label' => 'Amount of Pollutant', 'rules' => 'trim|required'), array( 'field' => 'rw_acc_amount', 'label' => 'Amount Unit', 'rules' => 'required'), array( 'field' => 'rw_acc_unit', 'label' => 'Unit', 'rules' => 'required'), array( 'field' => 'rw_acc_tech', 'label' => 'Estimation technique', 'rules' => 'required') ) );