Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Parsing Error!
  • ErrorException [ Parsing Error ]: syntax error, unexpected '['



    PKGPATH/auth/classes/auth/login/customauth.php @ line 480


          
    476            throw new \CustomUserUpdateException('Cannot delete user with empty company or user_code'9);
    477        }
    478
    479        $affected_rows = \DB::delete(\Config::get('customauth.table_name'))
    480            ->where('id''='$this->get_user_data($company_code$user_code)['id'])
    481            ->execute(\Config::get('customauth.db_connection'));
    482
    483        return $affected_rows 0;
    484    }

    does anyone has a clue about this pls help
  • HarroHarro
    Accepted Answer
    I assume this generates the error:
    $this->get_user_data($company_code, $user_code)['id']
    Accessing a function result as an array is only supported in PHP 5.4+.
  • ok Thanks for the help :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion