Antes del foreach
Código PHP:
foreach ($this->blockvariables[$block] as $allowedvar => $v) {
if (isset($this->variableCache[$allowedvar])) {
$regs[] = $this->openingDelimiter .
$allowedvar . $this->closingDelimiter;
$values[] = $this->variableCache[$allowedvar];
unset($this->variableCache[$allowedvar]);
$empty = false;
}
pon un var_dump o un print_r y pegalo a ver que te sale por pantalla, pon esto:
Código PHP:
echo "<pre>";
print_r($this->blockvariables[$block]);
echo "</pre>"; exit;