forked from extern/egroupware
worked around stupid php5.2 empty haystack warnings
This commit is contained in:
parent
e11b8e5e32
commit
c81097ab13
@ -61,7 +61,7 @@
|
|||||||
foreach($this->customfields as $name => $field)
|
foreach($this->customfields as $name => $field)
|
||||||
{
|
{
|
||||||
// check if the customfield get's displayed for type $value, we can have multiple comma-separated types now
|
// 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
|
continue; // not for our content type
|
||||||
}
|
}
|
||||||
|
@ -928,7 +928,7 @@
|
|||||||
{
|
{
|
||||||
$help = lang($help);
|
$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);
|
$options .= $this->html->tooltip($help);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user