mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-18 04:48:39 +00:00
Allow simple array ontop of key=>value
This commit is contained in:
parent
2023b9ab75
commit
e8e036173d
|
|
@ -47,6 +47,11 @@ class Zip implements ArchiveInterface
|
|||
|
||||
/** @var array $sources */
|
||||
foreach ($sources as $source => $relative) {
|
||||
if (\is_numeric($source) && \realpath($relative) !== false) {
|
||||
$source = $relative;
|
||||
$relative = '';
|
||||
}
|
||||
|
||||
$source = \realpath($source);
|
||||
|
||||
if ($source === false) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user