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