Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/04/2009, 14:11
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Respuesta: Sustituir por....

Pues hazlo con un if:
Código php:
Ver original
  1. if( empty( $var ) ) {
  2.      $var = "1.0";
  3. }

Saludos.