fix a PHP warning and a PHP notice

Signed-off-by: Remington Steed <rjs7@calvin.edu>