Skip to content
Snippets Groups Projects
Commit 5928b670 authored by Rasmus Fuhse's avatar Rasmus Fuhse Committed by Elmar Ludwig
Browse files

Resolve "OER-Campus: Eintrag für OERSI geht beim Deaktivieren kaputt"

Closes #2811

Merge request studip/studip!1893
parent da7bcbf2
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,8 @@ class Oer_AdminController extends AuthenticatedController
public function toggle_server_active_action()
{
if (Request::isPost()) {
$host = new OERHost(Request::option("host_id"));
if (!$host->isMe()) {
$host = OERHost::find(Request::option("host_id"));
if ($host && !$host->isMe()) {
$host['active'] = Request::int("active", 0);
$host->store();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment