From a11403b9133df4f2d7d0986bf60e73a33a3de469 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 20 Dec 2019 12:31:06 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1047 --- wire/core/PWGIF.php | 2 +- wire/modules/Process/ProcessTemplate/ProcessTemplate.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/core/PWGIF.php b/wire/core/PWGIF.php index e2026dc9..ab0998f0 100644 --- a/wire/core/PWGIF.php +++ b/wire/core/PWGIF.php @@ -404,7 +404,7 @@ class PWGIFIMAGE { $extLen++; switch($b) { case 0xF9: // Graphic Control - $b = ord($data{1}); + $b = ord($data[1]); $this->m_disp = ($b & 0x1C) >> 2; $this->m_bUser = ($b & 0x02) ? true : false; $this->m_bTrans = ($b & 0x01) ? true : false; diff --git a/wire/modules/Process/ProcessTemplate/ProcessTemplate.module b/wire/modules/Process/ProcessTemplate/ProcessTemplate.module index 7c4b1b9b..87092fb5 100644 --- a/wire/modules/Process/ProcessTemplate/ProcessTemplate.module +++ b/wire/modules/Process/ProcessTemplate/ProcessTemplate.module @@ -69,9 +69,9 @@ class ProcessTemplate extends Process { */ public function init() { + $this->moduleInfo = self::getModuleInfo(); $process = $this->wire('process'); if("$process" === "$this") { - $this->moduleInfo = self::getModuleInfo(); $this->headline($this->moduleInfo['title']); }