Skip to content

Commit

Permalink
Notice: Array to string conversion in (#5496)
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit authored and 810 committed Jul 31, 2017
1 parent 9d37a7d commit 20947ba
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -449,13 +449,15 @@ protected function _save()
}

$success = $category->save();
$aliases = explode(',', $app->input->getString('aliases_all'));
$aliases_all = explode(',', $app->input->getString('aliases_all'));

$aliases = $app->input->post->getArray(array('aliases' => ''));

if ($aliases)
if ($aliases_all)
{
$aliases = array_diff($aliases, $app->input->post->getArray(array('aliases' => '')));
$aliases = array_diff($aliases_all, $aliases['aliases']);

foreach ($aliases as $alias)
foreach ($aliases_all as $alias)
{
$category->deleteAlias($alias);
}
Expand Down

0 comments on commit 20947ba

Please sign in to comment.