mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
rev update
This commit is contained in:
parent
f88f0bf3f2
commit
39c7b34276
4 changed files with 466 additions and 370 deletions
|
@ -78,7 +78,7 @@ class dba {
|
|||
|
||||
$this->error = '';
|
||||
|
||||
if ($a->config["system"]["db_log"] != "")
|
||||
if(x($a->config,'system') && x($a->config['system'],'db_log'))
|
||||
$stamp1 = microtime(true);
|
||||
|
||||
if($this->mysqli)
|
||||
|
@ -86,7 +86,7 @@ class dba {
|
|||
else
|
||||
$result = @mysql_query($sql,$this->db);
|
||||
|
||||
if ($a->config["system"]["db_log"] != "") {
|
||||
if(x($a->config,'system') && x($a->config['system'],'db_log')) {
|
||||
$stamp2 = microtime(true);
|
||||
$duration = round($stamp2-$stamp1, 3);
|
||||
if ($duration > $a->config["system"]["db_loglimit"]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue