svn: /web/doc-editor/trunk/php/ RepositoryManager.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Wed, 07 Apr 2010 22:00:50 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=297651

Log:
Return FALSE when there is no folder to commit

Changed paths:
    U   web/doc-editor/trunk/php/RepositoryManager.php

Modified: web/doc-editor/trunk/php/RepositoryManager.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryManager.php	2010-04-07 21:59:02 UTC (rev 297650)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2010-04-07 22:00:50 UTC (rev 297651)
@@ -657,6 +657,10 @@
      */
     public function getOnlyFoldersForFiles($folders, $files) {

+        if( !$folders ) {
+            return false;
+        }
+
         $return = array();

         function parsePath($path, &$pathInfo) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.