Skip to content

Commit 8dfdf59

Browse files
committed
Fixed undefined constants
Mentioned by @lagaisse chriskacerguis#515
1 parent 3917372 commit 8dfdf59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/controllers/api/Example.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function user_get()
5757
$this->set_response([
5858
'status' => FALSE,
5959
'error' => 'User could not be found'
60-
], REST_Controller::NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
60+
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
6161
}
6262
}
6363

@@ -103,7 +103,7 @@ public function users_get()
103103
$this->set_response([
104104
'status' => FALSE,
105105
'error' => 'No users were found'
106-
], REST_Controller::NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
106+
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)