diff --git a/app/extensions/extension_download.php b/app/extensions/extension_download.php index 4dcac78e77..4bfad25831 100644 --- a/app/extensions/extension_download.php +++ b/app/extensions/extension_download.php @@ -132,7 +132,7 @@ } //get the extensions from the database and send them as output - if (is_array($_REQUEST["column_group"]) && @sizeof($_REQUEST["column_group"]) != 0) { + if (!empty($_REQUEST["column_group"]) && is_array($_REQUEST["column_group"]) && @sizeof($_REQUEST["column_group"]) != 0) { //validate the token $token = new token; @@ -188,16 +188,16 @@ echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; - if (is_array($available_columns) && @sizeof($available_columns) != 0) { + if (!empty($available_columns) && is_array($available_columns) && @sizeof($available_columns) != 0) { $x = 0; foreach ($available_columns as $column_name) { $list_row_onclick = "if (!this.checked) { document.getElementById('checkbox_all').checked = false; }"; - echo "\n"; + echo "\n"; echo " \n"; @@ -215,4 +215,4 @@ //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file
\n"; - echo " \n"; + echo " \n"; echo " ".$text['label-column_name']."
\n"; echo " \n"; echo "