Skip to content

Commit 60aa785

Browse files
committed
[plugin:tracker] fix enbug of @0899386
1 parent f22a0ad commit 60aa785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xoops_trust_path/modules/xpwiki/plugin/tracker.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ function get_tag()
565565

566566
function get_key($str)
567567
{
568-
return ($str == '') ? 'IS NULL' : 'IS NOT NULL';
568+
return ($str === '') ? 'IS NULL' : 'IS NOT NULL';
569569
}
570570

571571
function format_value($str)
@@ -579,7 +579,7 @@ function format_value($str)
579579

580580
function get_style($str)
581581
{
582-
$key = $this->get_key(! $this->is_null_style($str));
582+
$key = $this->get_key($this->is_null_style($str)? '' : $str);
583583
return isset($this->styles[$key]) ? $this->styles[$key] : '%s';
584584
}
585585

0 commit comments

Comments
 (0)