[Fusionforge-commits] r15368 - in branches/Branch_5_1: . src/plugins/scmgit/common

Roland Mas lolando at fusionforge.org
Mon Apr 23 15:05:22 CEST 2012


Author: lolando
Date: 2012-04-23 15:05:21 +0200 (Mon, 23 Apr 2012)
New Revision: 15368

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/plugins/scmgit/common/GitPlugin.class.php
Log:
Fixed GitPlugin::getRepositories() to always return an array

Modified: branches/Branch_5_1/src/plugins/scmgit/common/GitPlugin.class.php
===================================================================
--- branches/Branch_5_1/src/plugins/scmgit/common/GitPlugin.class.php	2012-04-23 10:27:55 UTC (rev 15367)
+++ branches/Branch_5_1/src/plugins/scmgit/common/GitPlugin.class.php	2012-04-23 13:05:21 UTC (rev 15368)
@@ -393,7 +393,7 @@
 
         function getRepositories($path) {
                 if (! is_dir($path))
-                        return;
+                        return array();
                 $list = array();
                 $entries = scandir($path);
                 foreach ($entries as $entry) {




More information about the Fusionforge-commits mailing list