From f2cbc2efbf354c613b8b12422cc8d2c1be3a2e40 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 14 Feb 2012 14:52:52 +0000 Subject: ignore calls without label --- it_text.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_text.class') diff --git a/it_text.class b/it_text.class index 97bf352..b4a5a19 100644 --- a/it_text.class +++ b/it_text.class @@ -226,7 +226,7 @@ function transmogrify($text, $values = null, $label = null) foreach (explode(".", $part) as $key) { $value = is_object($value) ? $value->$key : $value[$key]; - if ($value === null && $values) # do not test in $GLOBALS mode + if ($value === null && $values && $label) # do not test in $GLOBALS mode it::error(array('title' => "No value given for text variable {" . $key ."} in label $label", 'skipfiles' => "text|auto_prepend")); } -- cgit v1.2.3