summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2012-02-14 14:52:52 +0000
committerUrban Müller2012-02-14 14:52:52 +0000
commitf2cbc2efbf354c613b8b12422cc8d2c1be3a2e40 (patch)
tree6bc9ef85c59d83ed372505a7aa912c7607dcb67a
parent3d8a05a9f25f1ddc3afd57b08eb40d2a8a646eea (diff)
downloaditools-f2cbc2efbf354c613b8b12422cc8d2c1be3a2e40.tar.gz
itools-f2cbc2efbf354c613b8b12422cc8d2c1be3a2e40.tar.bz2
itools-f2cbc2efbf354c613b8b12422cc8d2c1be3a2e40.zip
ignore calls without label
-rw-r--r--it_text.class2
1 files changed, 1 insertions, 1 deletions
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"));
}