Skip to content

Commit

Permalink
fixed condition for deleting the key
Browse files Browse the repository at this point in the history
  • Loading branch information
zaalbarxx committed Jun 12, 2015
1 parent 8574170 commit 6ed6a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Barryvdh/TranslationManager/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function postEdit($group)

public function postDelete($group, $key)
{
if(!in_array($group, $this->manager->getConfig('exclude_groups')) && !$this->manager->getConfig('delete_enabled')) {
if(!in_array($group, $this->manager->getConfig('exclude_groups')) && $this->manager->getConfig('delete_enabled')) {
Translation::where('group', $group)->where('key', $key)->delete();
return array('status' => 'ok');
}
Expand Down

0 comments on commit 6ed6a76

Please sign in to comment.