mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Poller: Check the number of used database connections
This commit is contained in:
parent
981aad46d3
commit
7af3dd01d8
2 changed files with 47 additions and 0 deletions
|
@ -509,6 +509,16 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa
|
|||
$arr['inform'] = ((x($arr,'inform')) ? trim($arr['inform']) : '');
|
||||
$arr['file'] = ((x($arr,'file')) ? trim($arr['file']) : '');
|
||||
|
||||
|
||||
if (($arr['author-link'] == "") AND ($arr['owner-link'] == "")) {
|
||||
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 5);
|
||||
foreach ($trace AS $func)
|
||||
$function[] = $func["function"];
|
||||
|
||||
$function = implode(", ", $function);
|
||||
logger("Both author-link and owner-link are empty. Called by: ".$function, LOGGER_DEBUG);
|
||||
}
|
||||
|
||||
if ($arr['plink'] == "") {
|
||||
$a = get_app();
|
||||
$arr['plink'] = $a->get_baseurl().'/display/'.urlencode($arr['guid']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue