Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Warning when using exit_on_error=false #7

Closed
mdomba opened this issue Jan 26, 2014 · 1 comment
Closed

Warning when using exit_on_error=false #7

mdomba opened this issue Jan 26, 2014 · 1 comment

Comments

@mdomba
Copy link

mdomba commented Jan 26, 2014

If exit_on_error is false there is a warning like:

Warning: mysqli_set_charset() expects parameter 1 to be mysqli, boolean given in OBJ_mysql.php on line 121

It can be prevented by changing OBJ_mysql.php line 87, from:

$this->connect();
$this->set_charset($this->charset);

to

if($this->connect())
   $this->set_charset($this->charset);
entomb added a commit that referenced this issue Apr 8, 2014
@entomb
Copy link
Owner

entomb commented Apr 8, 2014

Fixed as suggested! Thanks again!

@entomb entomb closed this as completed Apr 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants