mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-11 11:30:46 +01:00
Cosmetics
This commit is contained in:
@@ -95,6 +95,7 @@ class Changelog
|
||||
if (!$row->save()) {
|
||||
$errors[] = 'Fail during toggle hidden Changelog.';
|
||||
}
|
||||
$status = $row->hidden;
|
||||
} else {
|
||||
$errors[] = 'Changelog with id ' . $id . ' does not exists.';
|
||||
}
|
||||
|
||||
@@ -153,7 +153,9 @@ class FAQ
|
||||
$row = ModelsFAQ::find($id);
|
||||
if ($row) {
|
||||
$row->hidden = ($row->hidden == 1 ? 0 : 1);
|
||||
$row->save();
|
||||
if (!$row->save()) {
|
||||
$errors[] = 'Fail during toggle hidden FAQ.';
|
||||
}
|
||||
} else {
|
||||
$errors[] = 'FAQ with id ' . $id . ' does not exists.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user