Skip to content

Commit

Permalink
fix MysqlPool::escape() empty arguments Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
deepziyu committed Jul 23, 2018
1 parent 393b802 commit 36ff0f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pool/MysqlPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public function prepareAndExecute(string $sql, array $inputParams = [], $bindID

public function escape(string $string) : string
{
if(empty($string)){
return $string;
}
$connect = $this->getConnect();
$res = null;
try{
Expand Down

0 comments on commit 36ff0f3

Please sign in to comment.