fixed problem with failed accounts
This commit is contained in:
parent
ca07bf67d9
commit
3fdac44b96
|
@ -90,7 +90,7 @@ if (($_SESSION['mass_counter'] < sizeof($accounts)) || !isset($_SESSION['mass_po
|
||||||
// do post upload actions
|
// do post upload actions
|
||||||
if ($_SESSION['mass_counter'] >= sizeof($accounts)) {
|
if ($_SESSION['mass_counter'] >= sizeof($accounts)) {
|
||||||
$data = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_data']));
|
$data = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_data']));
|
||||||
$return = doUploadPostActions($_SESSION['mass_scope'], $data, $_SESSION['mass_ids'], $failed);
|
$return = doUploadPostActions($_SESSION['mass_scope'], $data, $_SESSION['mass_ids'], $_SESSION['mass_failed']);
|
||||||
if ($return['status'] == 'finished') {
|
if ($return['status'] == 'finished') {
|
||||||
$_SESSION['mass_postActions']['finished'] = true;
|
$_SESSION['mass_postActions']['finished'] = true;
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ if (($_SESSION['mass_counter'] < sizeof($accounts)) || !isset($_SESSION['mass_po
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
flush();
|
flush();
|
||||||
while (!isset($_SESSION['mass_postActions']['finished']) && ($startTime + $maxTime > time())) {
|
while (!isset($_SESSION['mass_postActions']['finished']) && ($startTime + $maxTime > time())) {
|
||||||
$return = doUploadPostActions($_SESSION['mass_scope'], $data, $_SESSION['mass_ids'], $failed);
|
$return = doUploadPostActions($_SESSION['mass_scope'], $data, $_SESSION['mass_ids'], $_SESSION['mass_failed']);
|
||||||
if ($return['status'] == 'finished') {
|
if ($return['status'] == 'finished') {
|
||||||
$_SESSION['mass_postActions']['finished'] = true;
|
$_SESSION['mass_postActions']['finished'] = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue