Avoid warnings if no definitions found in file

This commit is contained in:
Nathan Gray 2011-03-21 14:12:37 +00:00
parent 78ce5f8941
commit f43c3c7c13

View File

@ -158,6 +158,9 @@ class importexport_definitions_bo {
translation::charset() translation::charset()
); );
// Avoid warning if no definitions found
if(!is_array($definitions)) return;
// save definition(s) into internal table // save definition(s) into internal table
foreach ( $definitions as $name => $definition_data ) foreach ( $definitions as $name => $definition_data )
{ {