1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 18:30:53 +02:00

Issue #4174 - Check core_image.phar exists before attempting to load it.

This commit is contained in:
Cameron
2020-05-21 13:10:58 -07:00
parent 57b6546892
commit 613666ce12

View File

@@ -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'];