diff options
-rw-r--r-- | it_text.class | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/it_text.class b/it_text.class index 6863750..4fce590 100644 --- a/it_text.class +++ b/it_text.class @@ -228,7 +228,11 @@ function transmogrify($text, $values = null) if (is_object($value)) $value = $value->$key; else + { $value = $value[$key]; + if ($value === null && $values) + it::error("No value given for text variable \{$key\}"); + } } $result .= $value; |