Skip to content

Commit e275891

Browse files
committed
[FIX] Json error in TV Controller.
1 parent 8f1fde6 commit e275891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Controllers/Tmplvar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ protected function parameterData()
210210
$_SESSION['itemname'] = $this->managerTheme->getLexicon('new_template');
211211
$data->category = isset($_REQUEST['catid']) ? (int) $_REQUEST['catid'] : 0;
212212
}
213-
$data->properties = json_decode($data->properties, true) ?? [];
213+
$data->properties = json_decode($data->properties ?? '', true) ?? [];
214214
$values = $this->managerTheme->loadValuesFromSession($_POST);
215215
if ($values) {
216216
$data->fill($values);

0 commit comments

Comments
 (0)