|
From: Rene R. <re...@gr...> - 2002-12-01 22:02:52
|
A quick guess is that you have no directories in the share you are make
a backup of.
It can't create a tree when there are no dirs. I haven't implemented a
check to fix this error yet.
-Rene
On Sun, 2002-12-01 at 05:52, Joe Zacky wrote:
> I'm still getting an error on the last 2 files in the cmd directory.
> Statement 132 and 136. Apparently the $dir_tree variable is null.
>
> Here's the error:
>
> Starting /var/bobsdata/current/process/cmd/cmd.1038710961.php
> X-Powered-By: PHP/4.2.2
> Content-type: text/html
>
> <br />
> <b>Warning</b>: sort() expects parameter 1 to be array, null given
> in <b>/var/b
> obsdata/current/process/cmd/cmd.1038710961.php</b> on line
> <b>132</b><br />
> <br />
> <b>Warning</b>: Invalid argument supplied for foreach() in
> <b>/var/bobsdata/cur
> rent/process/cmd/cmd.1038710961.php</b> on line <b>136</b><br />
>
> Finished /var/bobsdata/current/process/cmd/cmd.1038710961.php
>
> And here's the section of code it refers to:
>
> 132 sort($dir_tree);
> 133 // reset the state tree
> 134 $state = '';
> 135 // parse the tree
> 136 foreach ($dir_tree as $path ) {
>
|