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 ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code simplify, any issues with this for db.php #15

Open
gitmko0opened this issue Aug 31, 2020 · 0 comments
Open

Code simplify, any issues with this for db.php #15

gitmko0opened this issue Aug 31, 2020 · 0 comments

Comments

@gitmko0
Copy link

gitmko0 commented Aug 31, 2020

possible to simplify this line from to what i have done since!is_object($dbh) was already done prior just a few lines above.

// If there is an error then take note of it..
if ( is_object( $dbh ) && ( $this->last_error = mysqli_error( $dbh ) ) ) {
$this->print_error( $this->last_error );
return false;
}


if ($this->last_error = mysqli_error( $dbh ) ) {
$this->print_error( $this->last_error );
return false;
}
@gitmko0 gitmko0 changed the title Code simplify, any issues with this? Code simplify, any issues with this for db.php Aug 31, 2020
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