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:
@@ -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'])) {
|
||||
|
@@ -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++;
|
||||
|
Reference in New Issue
Block a user