get rid of extra bits

This commit is contained in:
Shish 2010-05-15 14:20:40 +01:00
parent 0d7efd0256
commit 97db78d29e

View File

@ -83,9 +83,7 @@ class AliasEditor extends SimpleExtension {
}
else if($event->get_arg(0) == "import") {
if($user->is_admin()) {
print_r($_FILES);
if(count($_FILES) > 0) {
global $database;
$tmp = $_FILES['alias_file']['tmp_name'];
$contents = file_get_contents($tmp);
$this->add_alias_csv($database, $contents);