Skip to content

Commit e3d6c20

Browse files
authored
Merge pull request #14 from ikhsan3adi/fix-loans
Update LoansController.php
2 parents 0e9217b + 48f435a commit e3d6c20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Controllers/Loans/LoansController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use App\Models\LoanModel;
88
use App\Models\MemberModel;
99
use CodeIgniter\Exceptions\PageNotFoundException;
10+
use CodeIgniter\HTTP\Method;
1011
use CodeIgniter\I18n\Time;
1112
use CodeIgniter\RESTful\ResourceController;
1213

@@ -237,7 +238,7 @@ function ($carry, $item) {
237238
*/
238239
public function new($validation = null, $oldInput = null)
239240
{
240-
if ($this->request->getMethod() !== 'POST') {
241+
if ($this->request->getMethod() !== Method::POST) {
241242
return redirect()->to('admin/loans/new/members/search');
242243
}
243244

0 commit comments

Comments
 (0)