summaryrefslogtreecommitdiff
path: root/it_text.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_text.class')
-rw-r--r--it_text.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_text.class b/it_text.class
index 1b92bf7..b03c4a6 100644
--- a/it_text.class
+++ b/it_text.class
@@ -41,7 +41,8 @@ function it_text($p = null)
# Read $this->statictext from php file if it's not defined yet
if (!$this->statictext)
- @include($this->p['phpfile']);
+ if (is_array($ret = @include($this->p['phpfile'])))
+ $this->statictext = $ret;
# Get array of supported languages and their names
$this->languages_available = (array)$this->statictext['_'];