gnucash-htdocs master: Check intermediate level of indirection (table_originals) for NULL.
John Ralls
jralls at code.gnucash.org
Fri Mar 31 22:54:35 EDT 2023
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/cd0f1892 (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/7afd5fdd (commit)
commit cd0f1892ce5f981b9e126d63754a86b89cd5af33
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Mar 31 19:53:42 2023 -0700
Check intermediate level of indirection (table_originals) for NULL.
diff --git a/externals/gettext.php b/externals/gettext.php
index 633df2b..4c937ea 100644
--- a/externals/gettext.php
+++ b/externals/gettext.php
@@ -160,7 +160,8 @@ class gettext_reader {
/* read all strings in the cache */
for ($i = 0; $i < $this->total; $i++) {
$offset = $i * 2 + 2;
- if (!($this && $this->table_originals[$offset])) {
+ if (!($this && $this->table_oritinals &&
+ $this->table_originals[$offset])) {
continue;
}
$this->STREAM->seekto($this->table_originals[$offset]);
Summary of changes:
externals/gettext.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list