Skip to content

Commit 44f1612

Browse files
committed
Trim space from last error
1 parent 53ada31 commit 44f1612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ public function getLastQuery () {
894894
* @return string
895895
*/
896896
public function getLastError () {
897-
return $this->_stmtError . " " . $this->_mysqli->error;
897+
return trim ($this->_stmtError . " " . $this->_mysqli->error);
898898
}
899899

900900
/**

0 commit comments

Comments
 (0)