Skip to content

Commit

Permalink
a few changes from calling halt to haltmsg to prevent actual halting
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Aug 2, 2018
1 parent 4b2dd4d commit 3c005eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mysqli/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function fetchObject() {
*/
public function next_record($resultType = MYSQLI_BOTH) {
if ($this->queryId === false) {
$this->halt('next_record called with no query pending.');
$this->haltmsg('next_record called with no query pending.');
return 0;
}

Expand All @@ -269,7 +269,7 @@ public function seek($pos = 0) {
if ($status) {
$this->Row = $pos;
} else {
$this->halt("seek({$pos}) failed: result has ".$this->num_rows().' rows', __LINE__, __FILE__);
$this->haltmsg("seek({$pos}) failed: result has ".$this->num_rows().' rows', __LINE__, __FILE__);
/* half assed attempt to save the day, but do not consider this documented or even desirable behaviour. */
@mysqli_data_seek($this->queryId, $this->num_rows());
$this->Row = $this->num_rows;
Expand Down

0 comments on commit 3c005eb

Please sign in to comment.