Skip to content

Commit 32153d0

Browse files
Merge pull request #1 from vladoschreiner/call-by-reference
Call by reference fixed
2 parents 5246bf8 + 956aa53 commit 32153d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/class.zipfile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function forceDownload($archiveName) {
180180
* @param multi-d array $package
181181
* @param array $paths
182182
*/
183-
function addPOGPackage($package, $paths=array())
183+
function addPOGPackage($package, &$paths=array())
184184
{
185185

186186
$i = 0;
@@ -195,7 +195,7 @@ function addPOGPackage($package, $paths=array())
195195
{
196196
$paths[] = $key;
197197
$this->addDirectory((($path == '') ? "$key/" : "$path/$key/"));
198-
$this->addPOGPackage($package[$key], &$paths);
198+
$this->addPOGPackage($package[$key], $paths);
199199
}
200200
else
201201
{
@@ -209,4 +209,4 @@ function addPOGPackage($package, $paths=array())
209209
}
210210
}
211211
}
212-
?>
212+
?>

0 commit comments

Comments
 (0)