aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-26 13:22:29 -0700
committerredmatrix <git@macgirvin.com>2016-05-26 13:22:29 -0700
commit8e4889bdf1454b3ddb183c25926286d62faa642a (patch)
treeb4841171037a62bfe67142311c0adcf6cd678d08 /Zotlabs/Module/Admin.php
parent7b91e551c41572768e94e97dddfc854cb003a002 (diff)
parent9d7abd58ac004f8df733a8187b57f6a3bfc2520e (diff)
downloadvolse-hubzilla-8e4889bdf1454b3ddb183c25926286d62faa642a.tar.gz
volse-hubzilla-8e4889bdf1454b3ddb183c25926286d62faa642a.tar.bz2
volse-hubzilla-8e4889bdf1454b3ddb183c25926286d62faa642a.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module/Admin.php')
-rw-r--r--Zotlabs/Module/Admin.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php
index 172b109c8..8f15035d1 100644
--- a/Zotlabs/Module/Admin.php
+++ b/Zotlabs/Module/Admin.php
@@ -1421,13 +1421,15 @@ class Admin extends \Zotlabs\Web\Controller {
function listAddonRepos() {
$addonrepos = [];
$addonDir = __DIR__ . '/../../extend/addon/';
- if ($handle = opendir($addonDir)) {
- while (false !== ($entry = readdir($handle))) {
- if ($entry != "." && $entry != "..") {
- $addonrepos[] = $entry;
+ if(is_dir($addonDir)) {
+ if ($handle = opendir($addonDir)) {
+ while (false !== ($entry = readdir($handle))) {
+ if ($entry != "." && $entry != "..") {
+ $addonrepos[] = $entry;
+ }
}
+ closedir($handle);
}
- closedir($handle);
}
return $addonrepos;
}