Hi, if the template function str_index_of receives an empty string as needle, it's underlying implementation with strpos raises a PHP warning:
Warning: strpos(): Empty delimiter in ... I did not fill a bug for this, since I consider it a design decision, whether the template component should save the user from these warnings as much as possible or not. My personal preferred solution would be to throw a big ugly exception in the case of an empty needle. :-) Best regards, Thomas -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components