mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 05:58:42 +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 */
|
/** @var array $sources */
|
||||||
foreach ($sources as $source => $relative) {
|
foreach ($sources as $source => $relative) {
|
||||||
|
if (\is_numeric($source) && \realpath($relative) !== false) {
|
||||||
|
$source = $relative;
|
||||||
|
$relative = '';
|
||||||
|
}
|
||||||
|
|
||||||
$source = \realpath($source);
|
$source = \realpath($source);
|
||||||
|
|
||||||
if ($source === false) {
|
if ($source === false) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user