mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Issue #4174 - Check core_image.phar exists before attempting to load it.
This commit is contained in:
parent
57b6546892
commit
613666ce12
@ -24,6 +24,12 @@ class e_file_inspector_json_phar extends e_file_inspector_json
|
||||
*/
|
||||
public function loadDatabase()
|
||||
{
|
||||
if(!file_exists($this->database))
|
||||
{
|
||||
$this->coreImage = [];
|
||||
return false;
|
||||
}
|
||||
|
||||
Phar::loadPhar($this->database, "core_image.phar");
|
||||
$tmpFile = tmpfile();
|
||||
$tmpFilePath = stream_get_meta_data($tmpFile)['uri'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user