mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:50:11 +00:00
Fix Database $_SERVER usage and remove old .travis files
This commit is contained in:
parent
0b98d67b80
commit
16591077ac
7 changed files with 10 additions and 54 deletions
|
@ -59,7 +59,7 @@ class Database
|
|||
/** @var PDO|mysqli */
|
||||
protected $connection;
|
||||
protected $driver;
|
||||
private $emulate_prepares = false;
|
||||
protected $emulate_prepares = false;
|
||||
private $error = false;
|
||||
private $errorno = 0;
|
||||
private $affected_rows = 0;
|
||||
|
@ -88,7 +88,7 @@ class Database
|
|||
{
|
||||
// Use environment variables for mysql if they are set beforehand
|
||||
if (!empty($server['MYSQL_HOST'])
|
||||
&& (!empty($server['MYSQL_USERNAME'] || !empty($server['MYSQL_USER'])))
|
||||
&& (!empty($server['MYSQL_USERNAME']) || !empty($server['MYSQL_USER']))
|
||||
&& $server['MYSQL_PASSWORD'] !== false
|
||||
&& !empty($server['MYSQL_DATABASE']))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue