checking repositories var as empty array

This commit is contained in:
Yoander Valdés Rodríguez
2012-05-25 16:43:40 -04:00
parent 198d173536
commit ab33a63c49

View File

@@ -52,7 +52,7 @@ class Client
{ {
$repositories = $this->recurseDirectory($path); $repositories = $this->recurseDirectory($path);
if (!isset($repositories)) { if (!empty($repositories)) {
throw new \RuntimeException('There are no GIT repositories in ' . $path); throw new \RuntimeException('There are no GIT repositories in ' . $path);
} }