PHP Classes

A bug

Recommend this page to a friend!

      Contraseņas  >  All threads  >  A bug  >  (Un) Subscribe thread alerts  
Subject:A bug
Summary:Undefined offset errors
Messages:1
Author:Larry Wakeman
Date:2007-03-05 20:08:30
 

  1. A bug   Reply   Report abuse  
Picture of Larry Wakeman Larry Wakeman - 2007-03-05 20:08:30
In the 22nd line ("$this->clave .= $this->vector[rand(0,count($this->vector))];") is a bug, it should be "$this->clave .= $this->vector[rand(0,count($this->vector)-1)];". Without the -1, you will get frequent Undefined offset errors. I also added "O" to the $vector array as well as "-" and "_".