Fix return from getVersion()
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Feb 2010 06:12:46 +0000 (23:12 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Feb 2010 06:12:46 +0000 (23:12 -0700)
framework/Core/lib/Horde/Registry.php

index f905cf9..55d1aed 100644 (file)
@@ -1280,8 +1280,8 @@ class Horde_Registry
         }
 
         return $number
-            ? $api->version
-            : preg_replace('/H\d \((.*)\)/', '$1', $api->version);
+            ? preg_replace('/H\d \((.*)\)/', '$1', $api->version)
+            : $api->version;
     }
 
     /**