From 037da636540cdae4996f102828bfcbfa15ac9bd3 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 22 Dec 2008 03:21:21 +0100 Subject: [PATCH] [svn r17419] Minor - Avoid warning on empty documents list --- main/dropbox/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/dropbox/index.php b/main/dropbox/index.php index 1944c0d65e..f6ec5bf29b 100644 --- a/main/dropbox/index.php +++ b/main/dropbox/index.php @@ -409,9 +409,11 @@ if (!$_GET['view'] OR $_GET['view']=='received' OR $dropbox_cnf['sent_received_t // Displaying the table $additional_get_parameters=array('view'=>$_GET['view'], 'view_received_category'=>$_GET['view_received_category'],'view_sent_category'=>$_GET['view_sent_category']); $selectlist = array ('delete_received' => get_lang('Delete'),'download_received'=>get_lang('Download')); - foreach ($movelist as $catid => $catname){ + if (is_array($movelist)) { + foreach ($movelist as $catid => $catname){ $selectlist['move_received_'.$catid] = get_lang('Move') . '->'. $catname; } + } Display::display_sortable_config_table($column_header, $dropbox_data_recieved, $sorting_options, $paging_options, $additional_get_parameters,$column_show,$column_order, $selectlist); }