From 4e8acf09a6191644acaa9d467eaa9f553e7d6d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Wed, 26 May 2010 09:30:55 +0000 Subject: [PATCH] Fixed bug with the upload field not being shown --- filemanager/inc/class.filemanager_select.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filemanager/inc/class.filemanager_select.inc.php b/filemanager/inc/class.filemanager_select.inc.php index 8ddcfb2516..a75f87d0c3 100644 --- a/filemanager/inc/class.filemanager_select.inc.php +++ b/filemanager/inc/class.filemanager_select.inc.php @@ -69,7 +69,7 @@ class filemanager_select throw new egw_exception_wrong_parameter("Wrong or unset required mode parameter!"); } $content['path'] = $_GET['path']; - if (!empty($content['path'])) + if (empty($content['path'])) { $content['path'] = egw_session::appsession('select_path','filemanger'); } @@ -194,8 +194,8 @@ class filemanager_select //Deactivate the opload field if the current directory is not writeable or //we're currently not in the single file open mode. - $content['no_upload'] = (!egw_vfs::is_writable($content['path']) || - !in_array($content['mode'],array('open'))); + $content['no_upload'] = !egw_vfs::is_writable($content['path']) || + !in_array($content['mode'],array('open')); $content['apps'] = array_keys(self::get_apps());