From b009b15330c0e688488e94c985cb92355b4f6394 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 22 Jun 2010 02:53:10 -0400 Subject: Add build-time comparison also. --- etc/inc/pfsense-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 17c7e67..e3eef07 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1810,7 +1810,7 @@ function pfs_version_compare($cur_time, $cur_text, $remote) { if ($v === FALSE) { // If that fails, try to compare by string // Before anything else, simply test if the strings are equal - if ($cur_text == $remote) + if (($cur_text == $remote) || ($cur_time == $remote)) return 0; list($cur_num, $cur_str) = explode('-', $cur_text); list($rem_num, $rem_str) = explode('-', $remote); -- cgit v1.1