Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Error - Trying to get some infoCollection() result propeties #103

Open
alexxsg opened this issue Jan 11, 2016 · 0 comments
Open

PHP Error - Trying to get some infoCollection() result propeties #103

alexxsg opened this issue Jan 11, 2016 · 0 comments

Comments

@alexxsg
Copy link

alexxsg commented Jan 11, 2016

When trying to get some properties, such as "dn", returned by the "public function __get($attribute)", i got an PHP parse error like:

[error] 1008#0: *33 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in collections/adLDAPCollection.php on line 108

Fixed adding below lines in "public function __get($attribute)", after line 93:

else {
                      if(!empty($this->info[0][strtolower($attribute)])){
                        return $this->info[0][strtolower($attribute)];   
                      }else{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant