Skip to content

Commit 17242de

Browse files
committed
Fix SQLException. Can be array or string
1 parent cd1b5cf commit 17242de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vendor/creole/SQLException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct($msg, $native = null, $userinfo = null)
6060
public function setUserInfo($info)
6161
{
6262
$this->userInfo = $info;
63-
$this->message .= " [User Info: " . $this->userInfo . "]";
63+
$this->message .= " [User Info: " . print_r($this->userInfo) . "]";
6464
}
6565

6666
/**
@@ -82,7 +82,7 @@ public function getUserInfo()
8282
public function setNativeError($msg)
8383
{
8484
$this->nativeError = $msg;
85-
$this->message .= " [Native Error: " .$this->nativeError . "]";
85+
$this->message .= " [Native Error: " . print_r($this->nativeError) . "]";
8686
}
8787

8888
/**

0 commit comments

Comments
 (0)