worked around stupid php5.2 empty haystack warnings

This commit is contained in:
Ralf Becker 2007-04-30 05:33:48 +00:00
parent 2862da3993
commit a9c94a4d3d

View File

@ -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,'');
}