updated so it works on php 5.3
Signed-off-by: thename151 <thename151@mail.com>