1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 08:17:12 +02:00
This commit is contained in:
Ryan Cramer
2024-11-22 09:32:33 -05:00
parent fb641fae89
commit 57388db576

View File

@@ -571,6 +571,7 @@ class ProcessPageEditLink extends Process implements ConfigurableModule {
*/ */
protected function ___getFilesPage(Page $page, $prefix = '') { protected function ___getFilesPage(Page $page, $prefix = '') {
$files = array(); $files = array();
if(!$page->id) return $files;
foreach($page->template->fieldgroup as $field) { foreach($page->template->fieldgroup as $field) {
/** @var Fieldtype $type */ /** @var Fieldtype $type */
$type = $field->type; $type = $field->type;