From a9c94a4d3da34072113732b4f8963d7c270af736 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 Apr 2007 05:33:48 +0000 Subject: [PATCH] worked around stupid php5.2 empty haystack warnings --- setup/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/config.php b/setup/config.php index 76a5503083..a4ea0aef1f 100644 --- a/setup/config.php +++ b/setup/config.php @@ -174,7 +174,7 @@ case 'value': $newval = str_replace(' ','_',$newval); /* Don't show passwords in the form */ - if(strstr($value,'passwd') || strstr($value,'password') || strstr($value,'root_pw')) + if(strpos($value,'passwd') !== false || strpos($value,'password') !== false || strpos($value,'root_pw') !== false) { $t->set_var($value,''); }