Fixed: data validation in offline refuel create form
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 12s
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 12s
This commit is contained in:
@ -7,6 +7,11 @@ class View
|
||||
// Store the data
|
||||
$this->data = $data;
|
||||
|
||||
// check for status code in data
|
||||
if(isset($this->data['status'])){
|
||||
http_response_code($this->data['status']);
|
||||
}
|
||||
|
||||
// Capture the view content
|
||||
ob_start();
|
||||
require_once views . $view . '.php';
|
||||
|
Reference in New Issue
Block a user