projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
35ce5c0
9c686a7
)
sync
author
benny cheung
<benny@roojs.com>
Tue, 3 Jul 2018 08:17:14 +0000
(16:17 +0800)
committer
benny cheung
<benny@roojs.com>
Tue, 3 Jul 2018 08:17:14 +0000
(16:17 +0800)
1
2
DB.php
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
DB.php
index
bfc9156
,
8af9de8
..
9347377
---
1
/
DB.php
---
2
/
DB.php
+++ b/
DB.php
@@@
-777,17
-776,10
+777,12
@@@
class D
$parsed['dbsyntax'] = $str;
}
- /*
- if (!count($dsn)) {
- return $parsed;
- }
- }*/
- if (is_array($dsn) && !count($dsn)) {
- return $parsed;
+
+ if (is_null($dsn)){
- return $parsed;
++ return $parsed;
}
+
// Get (if found): username and password
// $dsn => username:password@protocol+hostspec/database
if (($at = strrpos($dsn,'@')) !== false) {