mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-07 13:08:40 +00:00
fix source check
This commit is contained in:
parent
00d3f3d947
commit
64f498588f
|
|
@ -57,7 +57,7 @@ class TarGz implements ArchiveInterface
|
||||||
public static function unpack(string $source, string $destination) : bool
|
public static function unpack(string $source, string $destination) : bool
|
||||||
{
|
{
|
||||||
$destination = \str_replace('\\', '/', $destination);
|
$destination = \str_replace('\\', '/', $destination);
|
||||||
if (!\is_dir($destination) || !\is_file($source)) {
|
if (!\is_dir($destination) || \is_file($source)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user