From 3528bae253f51e9b23b02c1ad70b3eb1125e087e Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 16 Oct 2003 10:20:35 +0000 Subject: [PATCH] Fixed comments on str_ireplace --- lib/weblib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 3853f0956a..d62961c94c 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -194,9 +194,9 @@ function stripslashes_safe($string) { if (!function_exists('str_ireplace')) { function str_ireplace($find, $replace, $string) { /// This does a search and replace, ignoring case - /// This function is only here because one doesn't exist yet in PHP - /// Unlike str_replace(), this only works on single values (not arrays) - /// Function from the PHP manual, by bradhuizenga@softhome.net + /// This function is only here versions of PHP older than version 5 + /// may not have a native version of this function. + /// Taken from the PHP manual, by bradhuizenga@softhome.net if (!is_array($find)) { $find = array($find); -- 2.39.5