1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-23 06:44:38 +02:00

A couple of updates to account for new PHP 7.2/7.3 notices per processwire/processwire-issues#408

This commit is contained in:
Ryan Cramer
2018-12-12 11:59:02 -05:00
parent f39d4387d5
commit a40f24d722
2 changed files with 2 additions and 2 deletions

View File

@@ -443,7 +443,7 @@ class ProcessPageEditImageSelect extends Process implements ConfigurableModule {
if(!$field->type instanceof FieldtypeImage) continue;
$numImageFields++;
$images = $page->getUnformatted($field->name);
if(!count($images)) continue;
if(!wireCount($images)) continue;
foreach($images as $image) {
$numImages++;