]> git.mxchange.org Git - friendica.git/commitdiff
Fix undefined variable in contact import n mod/settings
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 6 Feb 2020 03:22:08 +0000 (22:22 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 8 Feb 2020 02:27:35 +0000 (21:27 -0500)
mod/settings.php

index b9bdf66ec0959285d747e7a6c74696b2ba6c4b25..30d406d59abc3e43aa8118c25982f940f0d52224 100644 (file)
@@ -406,9 +406,10 @@ function settings_post(App $a)
                                                Worker::add(PRIORITY_LOW, 'AddContact', $_SESSION['uid'], $csvRow[0]);
                                        }
                                }
+
                                info(DI::l10n()->t('Importing Contacts done'));
                                // delete temp file
-                               unlink($filename);
+                               unlink($_FILES['importcontact-filename']['tmp_name']);
                        }
                }
        }