In some cases the $matches variable seems to be empty.
I got rid of the messages by adding a test for emptiness of the $matches variable:
if (!empty($matches))
$keywords = preg_replace($search, $replace, $matches[0]);
Thank you, that seems to have fixed it for me! I got rid of the messages by adding a test for emptiness of the $matches variable:
if (!empty($matches))
$keywords = preg_replace($search, $replace, $matches[0]);

Forum 







