- $cfg = explode('/',$cfg);
- // si le premier argument est vide, c'est une syntaxe /table/ ou un appel vide ''
- if (!reset($cfg) AND count($cfg)>1) {
- array_shift($cfg);
- $table = array_shift($cfg);
- if (!isset($GLOBALS[$table]))
- lire_metas($table);
- }
- // si on a demande #CONFIG{/meta,'',0}
- if (count($cfg))
- $casier = array_shift($cfg);
-
- if (count($cfg))
- $sous_casier = $cfg;
+ if (strlen($cfg)){
+ $cfg = explode('/',$cfg);
+ // si le premier argument est vide, c'est une syntaxe /table/ ou un appel vide ''
+ if (!reset($cfg) AND count($cfg)>1) {
+ array_shift($cfg);
+ $table = array_shift($cfg);
+ if (!isset($GLOBALS[$table]))
+ lire_metas($table);
+ }
+ // si on a demande #CONFIG{/meta,'',0}
+ if (count($cfg))
+ $casier = array_shift($cfg);