Fix a PHP Strict warning
Don't pass empty warnings
Fire actions on warning and error
implode the array of php errors before storing in warning