We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This function returns error Warning: Trying to access array offset on value of type null in... if $result is null.
public function getResult($query, $pos = 0) { if($query) { $results = $this->query($query); $result = $results->fetch_array(); return $result[$pos]; } }
Must be updated:
public function getResult($query, $pos = 0) { if($query) { $results = $this->query($query); $result = $results->fetch_array(); if($result) { return $result[$pos]; } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This function returns error Warning: Trying to access array offset on value of type null in... if $result is null.
Must be updated:
The text was updated successfully, but these errors were encountered: