Fixed sometimes not saving patched_by

This commit is contained in:
Frank Schubert
2021-10-14 18:40:34 +02:00
parent 4033ea2773
commit 6e2853b6fd

View File

@@ -188,7 +188,7 @@ class PatchingController extends mfBaseController {
$patch_data["patched_date"] = date("U");
}
} else {
if($patch_data["patched"] && !$patchind->patched) {
if($patch_data["patched"] && !$patching->patched) {
$patch_data["patched_by"] = $this->me->id;
$patch_data["patched_date"] = date("U");
}
@@ -201,7 +201,6 @@ class PatchingController extends mfBaseController {
return $this->indexAction();
}
$sq = "";
$query = [];
if(is_numeric($this->request->s) && $this->request->s > 0) {
$query["s"] = $this->request->s;