developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 11 years ago

Closed 11 years ago

#1007 closed bug (fixed)

jLocale : Too few arguments

Reported by: foxmask Owned by: laurentj
Priority: normal Milestone: Jelix 1.0.12
Component: jelix:core Version: 1.1.3
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

[warning 2] sprintf() [<a href='function.sprintf'>function.sprintf</a>]: Too few arguments
 .../lib/jelix/core/jLocale.class.php 92

jLocale ne verifie pas si la taille de $args est 0 ce qui est bien !== null et donc provoque le pb sur ces lignes

        }else{
            //here, we know the message
            if ($args!==null){
                $string = call_user_func_array('sprintf', array_merge (array ($string), is_array ($args) ? $args : array ($args)));
            }
            return $string;
        }

Change History (2)

comment:1 Changed 11 years ago by laurentj

  • Milestone set to Jelix 1.1.5

comment:2 Changed 11 years ago by laurentj

  • Milestone changed from Jelix 1.1.5 to Jelix 1.0.12
  • Resolution set to fixed
  • Severity changed from normal to minor
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.