diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-12 13:16:29 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-12 13:17:25 +0200 |
commit | 65ff4dddba3110433eefbfc1f3539a8fc6a3ffec (patch) | |
tree | 9045448b18a616cab473748cc67fc47804f35322 /ext/mysqlnd | |
parent | 080e2316cf86a5fcf030b57569eaa07d6d9d22ef (diff) | |
download | php-git-65ff4dddba3110433eefbfc1f3539a8fc6a3ffec.tar.gz |
Remove always true condition
Diffstat (limited to 'ext/mysqlnd')
-rw-r--r-- | ext/mysqlnd/mysqlnd_connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_connection.c b/ext/mysqlnd/mysqlnd_connection.c index 6075f09bb5..b285c9bd52 100644 --- a/ext/mysqlnd/mysqlnd_connection.c +++ b/ext/mysqlnd/mysqlnd_connection.c @@ -791,7 +791,7 @@ err: DBG_ERR_FMT("[%u] %.128s (trying to connect via %s)", conn->error_info->error_no, conn->error_info->error, conn->scheme.s); if (!conn->error_info->error_no) { - SET_CLIENT_ERROR(conn->error_info, CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, conn->error_info->error? conn->error_info->error:"Unknown error"); + SET_CLIENT_ERROR(conn->error_info, CR_CONNECTION_ERROR, UNKNOWN_SQLSTATE, conn->error_info->error); php_error_docref(NULL, E_WARNING, "[%u] %.128s (trying to connect via %s)", conn->error_info->error_no, conn->error_info->error, conn->scheme.s); } |