mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-14 02:58: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
|
||||
{
|
||||
$destination = \str_replace('\\', '/', $destination);
|
||||
if (!\is_dir($destination) || !\is_file($source)) {
|
||||
if (!\is_dir($destination) || \is_file($source)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user