? jquery_update-1.2.6-version-compare-265644-33.patch
Index: jquery_update.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/jquery_update/jquery_update.module,v
retrieving revision 1.3
diff -u -p -r1.3 jquery_update.module
--- jquery_update.module	15 Jun 2008 04:07:14 -0000	1.3
+++ jquery_update.module	15 Jun 2008 05:07:27 -0000
@@ -107,10 +107,11 @@ function jquery_update_get_version($jque
  * Implementation of hook_flush_caches().
  */
 function jquery_update_flush_caches() {
-  // Find the versions ofjQuery provided by core and this module.
+  // Find the versions of jQuery provided by core and this module.
   $jquery_update_version = jquery_update_get_version();
   $jquery_core_version = jquery_update_get_version('misc/jquery.js');
 
   // Set a variable according to whether core's version needs to be replaced.
-  variable_set('jquery_update_replace', ($core_version < $jquery_update_version));
+  $replace = version_compare($jquery_core_version, $jquery_update_version, '<');
+  variable_set('jquery_update_replace', $replace);
 }
