Bug #1273 ยป pfsense-utils.inc.diff
pfsense-utils.inc 2011-02-10 14:19:05.809065993 +0100 | ||
---|---|---|
1674 | 1674 |
if ((!$a_time) || (!$b_time)) { |
1675 | 1675 |
return FALSE; |
1676 | 1676 |
} else { |
1677 |
if ($a < $b)
|
|
1677 |
if ($a_time < $b_time)
|
|
1678 | 1678 |
return -1; |
1679 |
elseif ($a == $b)
|
|
1679 |
elseif ($a_time == $b_time)
|
|
1680 | 1680 |
return 0; |
1681 | 1681 |
else |
1682 | 1682 |
return 1; |
... | ... | |
1735 | 1735 |
} |
1736 | 1736 |
function pfs_version_compare($cur_time, $cur_text, $remote) { |
1737 | 1737 |
// First try date compare |
1738 |
$v = version_compare_dates($cur_time, $b);
|
|
1738 |
$v = version_compare_dates($cur_time, $remote);
|
|
1739 | 1739 |
if ($v === FALSE) { |
1740 | 1740 |
// If that fails, try to compare by string |
1741 | 1741 |
// Before anything else, simply test if the strings are equal |