X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=920027cbcfaeef721a02f2ec3214efed0fcf459b;hb=8d195dc4992ff1e1d083ef0777c24ee897e63875;hp=16d2dc54d9cc1a362028699c974f41a8299174fb;hpb=37e8f6b442e0ff1acd639a2b50df09e39aaed4c8;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 16d2dc54d9..920027cbcf 100644 --- a/include/dba.php +++ b/include/dba.php @@ -35,7 +35,7 @@ class dba { public $error = false; function __construct($server, $user, $pass, $db, $install = false) { - global $a; + $a = get_app(); $stamp1 = microtime(true); @@ -139,7 +139,7 @@ class dba { } public function q($sql, $onlyquery = false) { - global $a; + $a = get_app(); if (!$this->db || !$this->connected) { return false;