1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-07 23:38:29 +02:00
This commit is contained in:
Ryan Cramer
2024-11-14 14:26:37 -05:00
parent d84d40e84c
commit 1191c164a2

View File

@@ -452,6 +452,8 @@ class FieldtypePageTable extends FieldtypeMulti implements Module, FieldtypeDoes
*/ */
public function ___wakeupValue(Page $page, Field $field, $value) { public function ___wakeupValue(Page $page, Field $field, $value) {
if($value && !is_array($value)) $value = array($value);
if(!is_array($value) || !wireCount($value) || empty($field->template_id)) { if(!is_array($value) || !wireCount($value) || empty($field->template_id)) {
return $this->getBlankValue($page, $field); return $this->getBlankValue($page, $field);
} }