]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Patch DB before release, weird use of count()
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 10 Jul 2017 12:10:10 +0000 (14:10 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 10 Jul 2017 12:10:10 +0000 (14:10 +0200)
extlib/DB.php

index cfbbe5ed2a204661a7aa29172a728c2f8ed86f7d..1aa9477065ba1e20a6621a1d83fb02f74b32ef6b 100644 (file)
@@ -772,7 +772,7 @@ class DB
             $parsed['dbsyntax'] = $str;
         }
 
-        if (!count($dsn)) {
+        if (!strlen($dsn)) {
             return $parsed;
         }