1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +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

@@ -135,7 +135,7 @@ class ImageInspector extends WireData {
if(is_array($additionalInfo) && $parseAppmarker) {
$appmarker = array();
foreach($additionalInfo as $k => $v) {
$appmarker[$k] = substr($v, 0, strpos($v, null));
$appmarker[$k] = substr($v, 0, strpos($v, chr(null)));
}
$this->info['appmarker'] = $appmarker;
if(isset($additionalInfo['APP13'])) {

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++;