Merge remote-tracking branch 'upstream/develop' into item-delete

This commit is contained in:
Michael 2018-01-17 21:54:17 +00:00
commit 000e6457b4
9 changed files with 129 additions and 32 deletions

View file

@ -26,9 +26,13 @@ class Process extends BaseObject
{
$return = true;
if (is_null($pid)) {
$pid = getmypid();
}
dba::transaction();
if (!dba::exists('process', ['pid' => getmypid()])) {
if (!dba::exists('process', ['pid' => $pid])) {
$return = dba::insert('process', ['pid' => $pid, 'command' => $command, 'created' => datetime_convert()]);
}