Skip to content

Commit

Permalink
Fixed issue #7695: Error importing a label set
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 21, 2013
1 parent 9a481b4 commit 6d14f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/labels.php
Expand Up @@ -126,7 +126,7 @@ public function import()
Yii::app()->loadHelper('admin/import');

$sFullFilepath = Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . randomChars(20);
$aPathInfo = pathinfo($sFullFilepath);
$aPathInfo = pathinfo($_FILES['the_file']['name']);
$sExtension = !empty($aPathInfo['extension']) ? $aPathInfo['extension'] : '';

if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $sFullFilepath))
Expand Down

0 comments on commit 6d14f9b

Please sign in to comment.