Update emailcollector.class.php

This commit is contained in:
Laurent Destailleur 2020-02-21 18:15:31 +01:00 committed by GitHub
parent d255c95661
commit 0ec4294d96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -812,9 +812,9 @@ class EmailCollector extends CommonObject
//var_dump($tmpproperty.' - '.$regexstring.' - '.$regexoptions.' - '.$sourcestring);
if (preg_match('/'.$regexstring.'/'.$regexoptions, $sourcestring, $regforval))
{
//var_dump($regforval[sizeof($regforval)-1]);exit;
//var_dump($regforval[count($regforval)-1]);exit;
// Overwrite param $tmpproperty
$object->$tmpproperty = isset($regforval[sizeof($regforval)-1]) ?trim($regforval[sizeof($regforval)-1]) : null;
$object->$tmpproperty = isset($regforval[count($regforval)-1]) ?trim($regforval[count($regforval)-1]) : null;
}
else
{
@ -1423,9 +1423,9 @@ class EmailCollector extends CommonObject
//var_dump($regexstring);var_dump($sourcestring);
if (preg_match('/'.$regexstring.'/ms', $sourcestring, $regforval))
{
//var_dump($regforval[sizeof($regforval)-1]);exit;
//var_dump($regforval[count($regforval)-1]);exit;
// Overwrite param $tmpproperty
$nametouseforthirdparty = isset($regforval[sizeof($regforval)-1]) ?trim($regforval[sizeof($regforval)-1]) : null;
$nametouseforthirdparty = isset($regforval[count($regforval)-1]) ?trim($regforval[count($regforval)-1]) : null;
}
else
{