(cp 7d3fc1e) fixes #1587 do not register a login activity for pwg.images.uploadAsync

This commit is contained in:
plegall
2021-12-23 17:56:12 +01:00
parent 51034b0045
commit 6ac9c73243
+6
View File
@@ -530,6 +530,12 @@ function pwg_activity($object, $object_id, $action, $details=array())
{
global $user;
// in case of uploadAsync, do not log the automatic login as an independant activity
if (isset($_REQUEST['method']) and 'pwg.images.uploadAsync' == $_REQUEST['method'] and 'login' == $action)
{
return;
}
$object_ids = $object_id;
if (!is_array($object_id))
{