diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-11-14 11:12:20 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-11-14 11:12:20 +0100 |
commit | dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1 (patch) | |
tree | c78eed1693d04fc927c5c2401974010adce14d5e /include/dba/dba_driver.php | |
parent | a9fd3608ea50ec4522075b3315a35c8eed9581d7 (diff) | |
parent | 886cdb440bfb92c28332d482a84e0a2f92333cb1 (diff) | |
download | volse-hubzilla-dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1.tar.gz volse-hubzilla-dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1.tar.bz2 volse-hubzilla-dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1.zip |
Merge branch 'dev'
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-x | include/dba/dba_driver.php | 18 |
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'); } |