Skip to content

Commit

Permalink
Bug Fix: Allow non existent config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
francis94c committed Apr 10, 2020
1 parent b895a8d commit a860d23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/REST.php
Expand Up @@ -147,6 +147,8 @@ function __construct(?array $params=null)
//$this->ci->config->load('rest', true, true);
if (is_file(APPPATH . 'config/rest.php')) {
include APPPATH . 'config/rest.php';
} else {
$config = [];
}

$this->config = $config;
Expand Down

0 comments on commit a860d23

Please sign in to comment.