svn: /web/doc-editor/trunk/php/ RepositoryFetcher.php
| From: | Yannick Torres | Date: | Sun, 28 Mar 2010 08:24:36 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ RepositoryFetcher.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1686@lists.php.net to get a copy of this message | ||
yannick Sun, 28 Mar 2010 08:24:36 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296958
Log:
Fix bugs in special case the id provided as arguments is empty when the file we try to commit have
been already fixed in anothers commits (outside of the editor)
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-03-28 08:11:46 UTC (rev 296957)
+++ web/doc-editor/trunk/php/RepositoryFetcher.php 2010-03-28 08:24:36 UTC (rev 296958)
@@ -154,9 +154,14 @@
public function getModifiesById($id)
{
$am = AccountManager::getInstance();
+ $infos = array();
$ids = is_array($id) ? implode($id, ',') : $id;
+ if( empty(trim($ids)) ) {
+ return $infos;
+ }
+
$s = sprintf(
'SELECT *
FROM
@@ -172,7 +177,6 @@
$r = DBConnection::getInstance()->query($s);
- $infos = array();
while ($a = $r->fetch_assoc()) {
$infos[] = $a;
}