mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 01:57:37 +02:00
set enabled/disabled to true/false
This commit is contained in:
@@ -721,7 +721,7 @@ class AdminController
|
||||
}
|
||||
|
||||
// Filter value and save it.
|
||||
$this->post = array('enabled' => 1);
|
||||
$this->post = array('enabled' => true);
|
||||
$obj = $this->prepareData();
|
||||
$obj->save();
|
||||
|
||||
@@ -747,7 +747,7 @@ class AdminController
|
||||
}
|
||||
|
||||
// Filter value and save it.
|
||||
$this->post = array('enabled' => 0);
|
||||
$this->post = array('enabled' => false);
|
||||
$obj = $this->prepareData();
|
||||
$obj->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user