From d25bc74d717e62a537e2e15ce960300e9f25ce0f Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Sat, 9 Oct 2010 10:09:51 +0000 Subject: [PATCH] If no branch certificates are attached to a revision, we do not get an empty array back from _getCerts(), but no entry for 'branch' at all. --- src/IDF/Scm/Monotone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Scm/Monotone.php b/src/IDF/Scm/Monotone.php index 13a33e1..74c6b78 100644 --- a/src/IDF/Scm/Monotone.php +++ b/src/IDF/Scm/Monotone.php @@ -413,7 +413,7 @@ class IDF_Scm_Monotone extends IDF_Scm $certs = $scm->_getCerts($revs[0]); // for the very seldom case that a revision // has no branch certificate - if (count($certs['branch']) == 0) { + if (!array_key_exists('branch', $certs)) { $branch = '*'; } else