Skip to content

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

@gitmko0

Description

@gitmko0

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;
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions