Changeset:
        e9376b765aa2
        
https://sourceforge.net/p/mrbs/hg-code/ci/e9376b765aa2420ec2347628e57040877c0a7a42
Author:
        John Beranek <[email protected]>
Date:
        Wed Apr 05 20:28:52 2017 +0100
Log message:

Made the DB connection DSN more strictly correct.

diffstat:

 web/lib/MRBS/DB.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0fe8e6c91c84 -r e9376b765aa2 web/lib/MRBS/DB.php
--- a/web/lib/MRBS/DB.php       Wed Apr 05 20:24:25 2017 +0100
+++ b/web/lib/MRBS/DB.php       Wed Apr 05 20:28:52 2017 +0100
@@ -45,7 +45,7 @@
       {
         $hostpart = "host=$db_host;";
       }
-      $this->dbh = new 
PDO(static::DB_DBO_DRIVER.":$hostpart;port=$db_port;dbname=$db_name",
+      $this->dbh = new 
PDO(static::DB_DBO_DRIVER.":${hostpart}port=$db_port;dbname=$db_name",
                            $db_username,
                            $db_password,
                            array(PDO::ATTR_PERSISTENT => ($persist ? true : 
false),

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to