[zi-cvs] packages/com.zzoss.zic application_update.php,1.8,1.9

Sandro Zic <[email protected]> Tue, 18 May 2004 13:16:25 +0000
Newsgroups gmane.comp.php.zzoss.installer.cvs
Message-ID <[email protected]>
Update of /cvsroot/zzossinstaller/packages/com.zzoss.zic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25130

Modified Files:
	application_update.php 
Log Message:
use version_compare() for correct check

Index: application_update.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic/application_update.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** application_update.php	17 May 2004 09:55:23 -0000	1.8
--- application_update.php	18 May 2004 13:16:22 -0000	1.9
***************
*** 63,67 ****
                  $old_app_version = $application['release']['version'];
                  $old_app =  $application['name'];
!                 if($new_app_version <= $old_app_version){
                      $_REQUEST['ZI_LOCATION_NEXT'] = 'application_update.php'.zi_form_querystr().'&error='.rawurlencode('New version is older or the same (new '.$new_app_version.' <= old '.$old_app_version.')');
                      return false;
--- 63,67 ----
                  $old_app_version = $application['release']['version'];
                  $old_app =  $application['name'];
!                 if(!version_compare($new_app_version, $old_app_version, '>')){
                      $_REQUEST['ZI_LOCATION_NEXT'] = 'application_update.php'.zi_form_querystr().'&error='.rawurlencode('New version is older or the same (new '.$new_app_version.' <= old '.$old_app_version.')');
                      return false;



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click