Improved the internal session handel of JCB. Fixed gh-487 that removed the data size when creating a new field.

This commit is contained in:
2019-11-08 18:07:08 +02:00
parent 010a134e1a
commit 6539862534
38 changed files with 1582 additions and 564 deletions

View File

@ -7001,7 +7001,7 @@ class Get
(trim($lineContent) === $endHTML || strpos($lineContent, $endHTML) !== false)))
{
// trim the placeholder and if there is still data then load it
if ($_line = $this->addLineChecker($endReplace, 2, $lineContent))
if (isset($endReplace) && ($_line = $this->addLineChecker($endReplace, 2, $lineContent)) !== false)
{
$codeBucket[$pointer[$targetKey]][] = $_line;
}
@ -7360,9 +7360,9 @@ class Get
/**
* Check if this line should be added
*
* @param strin $replaceKey The key to remove from line
* @param int $type The line type
* @param string $lineContent The line to check
* @param string $replaceKey The key to remove from line
* @param int $type The line type
* @param string $lineContent The line to check
*
* @return bool true on success
*