Improvement in the processes importation

This commit is contained in:
Julio Cesar Laura
2013-01-02 15:20:07 -04:00
parent f073887b63
commit ace1c94593

View File

@@ -3168,7 +3168,7 @@ class Processes
if ($fsFileName > 0) {
$sFileName = fread( $fp, $fsFileName ); //reading filename string
}
$fsContent = function_exists( 'mb_strlen' ) ? mb_strlen( fread( $fp, 9 ) ) : strlen( fread( $fp, 9 ) ); //reading the size of $Content
$fsContent = intval( fread ( $fp, 9)) or 0; //reading the size of $Content
if ($fsContent > 0) {
$fileContent = fread( $fp, $fsContent ); //reading string $XmlContent
$newFileName = $pathMailTem . $sFileName;
@@ -3190,7 +3190,7 @@ class Processes
if ($fsFileName > 0) {
$sFileName = fread( $fp, $fsFileName ); //reading filename string
}
$fsContent = function_exists( 'mb_strlen' ) ? mb_strlen( fread( $fp, 9 ) ) : strlen( fread( $fp, 9 ) ); //reading the size of $Content
$fsContent = intval( fread ( $fp, 9)) or 0; //reading the size of $Content
if ($fsContent > 0) {
$fileContent = fread( $fp, $fsContent ); //reading string $XmlContent
$newFileName = $pathPublic . $sFileName;