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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Mon, 04 Jan 2010 20:30:11 +0000

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

Log:
Fix bug in getPendingUpdate condition

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

Modified: web/doc-editor/trunk/php/RepositoryFetcher.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryFetcher.php	2010-01-04 20:28:20 UTC (rev 293095)
+++ web/doc-editor/trunk/php/RepositoryFetcher.php	2010-01-04 20:30:11 UTC (rev 293096)
@@ -121,7 +121,7 @@
         $project = AccountManager::getInstance()->project;

         $s = sprintf(
-            'SELECT count(*) as total FROM `files` WHERE `project`="%s" AND `lang` = "%s" AND `revision` != `en_revision`',
+            'SELECT count(*) as total FROM `files` WHERE `project`="%s" AND `lang` = "%s" AND `revision` != `en_revision` AND `revision` != 0',
             $project, $vcsLang
         );
         $r = DBConnection::getInstance()->query($s);
@@ -143,7 +143,7 @@
         $m = $this->getModifies();

         $s = sprintf(
-            'SELECT * FROM `files` WHERE `project`="%s" AND `lang` = "%s" AND ( `revision` != `en_revision` OR `en_revision`=0 )',
+            'SELECT * FROM `files` WHERE `project`="%s" AND `lang` = "%s" AND `revision` != `en_revision` AND `revision` != 0 ',
             $project, $vcsLang
         );
         $r = DBConnection::getInstance()->query($s);
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.