Fix several parse errors.
authorJan Schneider <jan@horde.org>
Thu, 18 Mar 2010 18:23:24 +0000 (19:23 +0100)
committerJan Schneider <jan@horde.org>
Thu, 18 Mar 2010 18:23:24 +0000 (19:23 +0100)
framework/VFS/lib/VFS/smb.php

index f326c29..e90a003 100644 (file)
@@ -342,7 +342,7 @@ class VFS_smb extends VFS
                                $dironly = false)
     {
         list($path) = $this->_escapeShellCommand($path);
-        return $this->parseListing($this->_command($path, array('ls'), $filter, $dotfiles, $dironly);
+        return $this->parseListing($this->_command($path, array('ls')), $filter, $dotfiles, $dironly);
     }
 
     /**
@@ -431,9 +431,9 @@ class VFS_smb extends VFS
     {
         // dirname will strip last component from path, even on a directory
         $folder = array(
-            ['val'] = dirname($path),
-            $folder['abbrev'] = '..',
-            $folder['label'] = '..'
+            'val' => dirname($path),
+            'abbrev' => '..',
+            'label' => '..'
         );
         $folders = array($folder['val'] => $folder);