From: Thomas Tanghus Date: Mon, 11 Jun 2012 20:12:06 +0000 (+0200) Subject: Quick fix for index errors when not importing from files. X-Git-Tag: v4.5.0beta1~74^2~421^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b86cbcb6f36b1ee545b00695c01817eb1780157;p=nextcloud-server.git Quick fix for index errors when not importing from files. --- diff --git a/apps/contacts/import.php b/apps/contacts/import.php index 0ee35f9fd81..c95fd970fe1 100644 --- a/apps/contacts/import.php +++ b/apps/contacts/import.php @@ -15,7 +15,7 @@ session_write_close(); $nl = "\n"; global $progresskey; -$progresskey = 'contacts.import-' . $_GET['progresskey']; +$progresskey = 'contacts.import-' . (isset($_GET['progresskey'])?$_GET['progresskey']:''); if (isset($_GET['progress']) && $_GET['progress']) { echo OC_Cache::get($progresskey);