]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
ensure host xrd is correct, even if installed in subpath
[friendica.git] / include / dba.php
index 1fdddb8a2ce37c41c384add95d11e84bc60dda14..49b325cf7b544dfe72a79f210cfe992359f793a0 100644 (file)
@@ -19,6 +19,7 @@ class dba {
        public  $connected = false;
 
        function __construct($server,$user,$pass,$db,$install = false) {
+
                $server = trim($server);
                $user = trim($user);
                $pass = trim($pass);
@@ -27,7 +28,7 @@ class dba {
                if($install) {
                        if(strlen($server) && ($server !== 'localhost') && ($server !== '127.0.0.1')) {
                                if(! dns_get_record($server, DNS_A + DNS_CNAME + DNS_PTR)) {
-                                       notice( sprintf( t('Cannot locate DNS info for database server \'%s\'',$server)));
+                                       notice( sprintf( t('Cannot locate DNS info for database server \'%s\''), $server));
                                        $this->connected = false;
                                        $this->db = null;
                                        return;
@@ -77,7 +78,7 @@ class dba {
                }
                else {
 
-                       /*
+                       /**
                         * If dbfail.out exists, we will write any failed calls directly to it,
                         * regardless of any logging that may or may nor be in effect.
                         * These usually indicate SQL syntax errors that need to be resolved.