worked around stupid php5.2 empty haystack warnings

This commit is contained in:
Ralf Becker 2007-04-29 14:26:28 +00:00
parent e11b8e5e32
commit c81097ab13
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@
foreach($this->customfields as $name => $field)
{
// check if the customfield get's displayed for type $value, we can have multiple comma-separated types now
if (!empty($field['type2']) && !strstr(','.$field['type2'].',',','.$value.','))
if (!empty($field['type2']) && strpos(','.$field['type2'].',',','.$value.',') === false)
{
continue; // not for our content type
}

View File

@ -928,7 +928,7 @@
{
$help = lang($help);
}
if (($use_tooltip_for_help = strstr($help,'<') && strip_tags($help) != $help)) // helptext is html => use a tooltip
if (($use_tooltip_for_help = strpos($help,'<') !== false && strip_tags($help) != $help)) // helptext is html => use a tooltip
{
$options .= $this->html->tooltip($help);
}