aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-11-10 15:02:27 +0100
committerMario <mario@mariovavti.com>2018-11-10 15:02:27 +0100
commit01d8bd445e1ffa50e51f7eee0e72e83adeec1a6b (patch)
tree64ca556a0163bcc2853ee34ee0ea284cd7109010
parentc6e14a696e7942c26319b57f197826018b427002 (diff)
parent108a892a11d737a80c1736defd1b40ba81449812 (diff)
downloadvolse-hubzilla-01d8bd445e1ffa50e51f7eee0e72e83adeec1a6b.tar.gz
volse-hubzilla-01d8bd445e1ffa50e51f7eee0e72e83adeec1a6b.tar.bz2
volse-hubzilla-01d8bd445e1ffa50e51f7eee0e72e83adeec1a6b.zip
Merge branch 'dev' into 'dev'
Remove DNS check for database connection during installation... See merge request hubzilla/core!1384
-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');
}