Skip to content

Commit

Permalink
Fix error progressBar ocs link
Browse files Browse the repository at this point in the history
  • Loading branch information
amma35 committed Mar 8, 2017
1 parent 193013c commit b44df93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/ocsng.link.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@
foreach ($_POST['toimport'] as $key => $val) {
if ($val == "on") {
if (isset($_POST['tolink']) && count($_POST['tolink']) > 0) {
$_SESSION["ocs_link_count"] = 0;

foreach ($_POST['tolink'] as $ocsid => $computers_id) {
if ($computers_id > 0 && $key == $ocsid) {
$_SESSION["ocs_link"][] = array('ocsid' => $ocsid,
'computers_id' => $computers_id);
$_SESSION["ocs_link_count"]++;

}
}
}
$_SESSION["ocs_link_count"]++;
}
}
}
Expand Down

0 comments on commit b44df93

Please sign in to comment.