From: Jan Schneider Date: Thu, 13 Aug 2009 19:09:07 +0000 (+0200) Subject: Fix version number calculation. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=61b582af95a109673d53c8bd35e359939ed23e25;p=horde.git Fix version number calculation. --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php index 063d6ce48..c9f049cd1 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php +++ b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php @@ -658,7 +658,7 @@ class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Abstract_Schem try { $version = $this->selectValue('SELECT version()'); if (preg_match('/PostgreSQL (\d+)\.(\d+)\.(\d+)/', $version, $matches)) - return ($matches[1] * 10000) . ($matches[2] * 100) . $matches[3]; + return ($matches[1] * 10000) + ($matches[2] * 100) + $matches[3]; } catch (Exception $e) {} return 0;