Skip to content

Commit

Permalink
Update admin.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Dec 4, 2014
1 parent e31f439 commit 7a7efaf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libraries/legacy/model/admin.php
Expand Up @@ -359,15 +359,15 @@ protected function batchCopy($value, $pks, $contexts)
$this->type = $this->contentType->getTypeByTable($this->tableClassName);
}

$i = 0;

$categoryId = $value;

if (!static::checkCategoryId($categoryId))
{
return false;
}

$newIds = array();

// Parent exists so let's proceed
while (!empty($pks))
{
Expand Down Expand Up @@ -440,8 +440,7 @@ protected function batchCopy($value, $pks, $contexts)
$newId = $this->table->get('id');

// Add the new ID to the array
$newIds[$i] = $newId;
$i++;
$newIds[] = $newId;
}

// Clean the cache
Expand Down

0 comments on commit 7a7efaf

Please sign in to comment.