mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
checking repositories var as empty array
This commit is contained in:
@@ -52,7 +52,7 @@ class Client
|
||||
{
|
||||
$repositories = $this->recurseDirectory($path);
|
||||
|
||||
if (!isset($repositories)) {
|
||||
if (!empty($repositories)) {
|
||||
throw new \RuntimeException('There are no GIT repositories in ' . $path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user