]> git.mxchange.org Git - friendica.git/blobdiff - include/dba_pdo.php
merged 2 if() into one as requested by CR
[friendica.git] / include / dba_pdo.php
index 7b720fb6c1217e31be5ae0368ea9facbdfcf229e..a44c447af20fa568d8ed15bb6e6082fc5330b182 100644 (file)
@@ -44,7 +44,7 @@ class dba {
        public  $error = false;
 
        function __construct($server,$user,$pass,$db,$install = false) {
-               global $a;
+               $a = get_app();
     
     # work around, to store the database - configuration in DDDBL
     $objDataObjectPool = new \DDDBL\DataObjectPool('Database-Definition');
@@ -99,7 +99,7 @@ class dba {
        }
 
        public function q($sql, $onlyquery = false) {
-               global $a;
+               $a = get_app();
 
     $strHandler = (true === $onlyquery) ? 'PDOStatement' : 'MULTI';