aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorAndrew Manning <andrew@reticu.li>2018-11-09 05:31:55 -0500
committerAndrew Manning <andrew@reticu.li>2018-11-09 05:31:55 -0500
commit108a892a11d737a80c1736defd1b40ba81449812 (patch)
tree674acba188471aaaacc7c13594e92a08a12c7b7b /include/dba/dba_driver.php
parent2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb (diff)
downloadvolse-hubzilla-108a892a11d737a80c1736defd1b40ba81449812.tar.gz
volse-hubzilla-108a892a11d737a80c1736defd1b40ba81449812.tar.bz2
volse-hubzilla-108a892a11d737a80c1736defd1b40ba81449812.zip
Remove DNS check for database connection during installation. Causes friction with Docker deployment.
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index 9533acc7f..ee0e06a91 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -173,14 +173,14 @@ abstract class dba_driver {
return false;
}
- if(strlen($server) && ($server !== 'localhost') && ($server !== '127.0.0.1') && (! strpbrk($server,':;'))) {
- if(! z_dns_check($server)) {
- $this->error = sprintf( t('Cannot locate DNS info for database server \'%s\''), $server);
- $this->connected = false;
- $this->db = null;
- return false;
- }
- }
+ // if(strlen($server) && ($server !== 'localhost') && ($server !== '127.0.0.1') && (! strpbrk($server,':;'))) {
+ // if(! z_dns_check($server)) {
+ // $this->error = sprintf( t('Cannot locate DNS info for database server \'%s\''), $server);
+ // $this->connected = false;
+ // $this->db = null;
+ // return false;
+ // }
+ // }
return true;
}
@@ -468,7 +468,7 @@ function db_columns($table) {
if(ACTIVE_DBTYPE === DBTYPE_POSTGRES) {
$r = q("SELECT column_name as field FROM information_schema.columns WHERE table_schema = 'public' AND table_name = '%s'",
dbesc($table)
- );
+ );
if($r) {
return ids_to_array($r,'field');
}