The connection list view could never work with this messy backend.

This commit is contained in:
Thomas Keller 2010-10-07 01:05:15 +00:00
parent 4951498c0b
commit a29a2a0fa4

View File

@ -76,7 +76,7 @@ class IDF_Scm_Monotone_Usher
$single_conns = preg_split('/[ ]/', $conn);
$ret = array();
foreach ($single_conns as $conn) {
preg_match('/\(\w+\)([^:]):(\d+)/', $conn, $matches);
preg_match('/\((\w+)\)([^:]+):(\d+)/', $conn, $matches);
$ret[$matches[1]][] = (object)array(
'server' => $matches[1],
'address' => $matches[2],
@ -84,6 +84,12 @@ class IDF_Scm_Monotone_Usher
);
}
if ($server !== null) {
if (array_key_exists($server, $ret))
return $ret[$server];
return array();
}
return $ret;
}