Tweaking a couple lines in amani_admin to accomodate for php 5.3.