From 0257eee0fa3fb4590f5720edab8cbf260a39e26f Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 Jul 2005 10:56:55 +0000 Subject: [PATCH] uninitialised handle fixed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@937 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/ldapmanager/class_csvimport.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/addons/ldapmanager/class_csvimport.inc b/plugins/addons/ldapmanager/class_csvimport.inc index 8e81078b1..edc2ecb02 100644 --- a/plugins/addons/ldapmanager/class_csvimport.inc +++ b/plugins/addons/ldapmanager/class_csvimport.inc @@ -294,6 +294,9 @@ class csvimport extends plugin } else { /* Check if theres a file uploaded */ if(!empty($_FILES['userfile']['name'])){ + + $handle = NULL; + if((!isset($_FILES['userfile']['name']))||(!isset($_POST['fileup']))) { print_red(_("There is no file uploaded.")); @@ -319,6 +322,7 @@ class csvimport extends plugin { $smarty->assign("fileup",TRUE); $str = ""; + /* Reading content */ while(!feof($handle)) { -- 2.30.2