Fixed more php warnings when the strict mode is turned on with PHP 5.4