fixed PHP Warnings
fixed PHP Warnings