Permalink
Browse files

Fix double $value['type']!=""

  • Loading branch information...
1 parent 2bed62c commit 15fe4f6773aca41f4ad0fb06279a491d9a5dcbc8 Yura committed Mar 1, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/snippets/eform/eform.inc.php
@@ -368,7 +368,7 @@ function eForm($modx,$params) {
break;
case "file":
// set file name
- if($value['type']!="" && $value['type']!=""){
+ if($value['type']!="" && $value['error']==0){
$value = $value["name"];
$patharray = explode(((strpos($value,"/")===false)? "\\":"/"), $value);
$value = $patharray[count($patharray)-1];

0 comments on commit 15fe4f6

Please sign in to comment.