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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 07 Jan 2010 06:32:24 +0000

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

Log:
Don't search an error in files witch have a revision number set to 0

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-01-07 06:13:41 UTC (rev 293200)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2010-01-07 06:32:24 UTC (rev 293201)
@@ -966,7 +966,7 @@
                         DBConnection::getInstance()->query($query);

                         // Check for error in this file ONLY if this file is uptodate
-                        if ($revision == $en_revision ) {
+                        if ($revision == $en_revision &&  $revision != 0 ) {
                             $error = new ToolsError();
                             $error->setParams(
                                 $infoEN['content'], $infoLANG['content'],
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.