@@ 66-73 (lines=8) @@ | ||
63 | $group = Sentinel::getRoleRepository()->find($id); |
|
64 | ||
65 | // Get the group's information |
|
66 | if($group == null) |
|
67 | { |
|
68 | // Prepare the error message |
|
69 | $error = Lang::get('base.groups.not_found'); |
|
70 | ||
71 | // Redirect to the post management page |
|
72 | return Redirect::route('groups')->with('error', $error); |
|
73 | } |
|
74 | ||
75 | $groups = null; |
|
76 | ||
@@ 242-249 (lines=8) @@ | ||
239 | // Get group information |
|
240 | $group = Sentinel::getRoleRepository()->find($id); |
|
241 | ||
242 | if ($group == null) |
|
243 | { |
|
244 | // Prepare the error message |
|
245 | $error = Lang::get('base.groups.not_found'); |
|
246 | ||
247 | // Redirect to the post management page |
|
248 | return Redirect::route('groups')->with('error', $error); |
|
249 | } |
|
250 | ||
251 | Base::Log('Group (' . $group->id . ' - ' . $group->name . ') was deleted.'); |
|
252 |