This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 5d67f21f51c2e5bb074e31dde12709e01cba8190 (commit)
from 2d4afbe20e8aeced226ab3e0418a629fc43c4dbd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=5d67f21f51c2e5bb074e31dde12709e01cba8190
commit 5d67f21f51c2e5bb074e31dde12709e01cba8190
Author: Franck Villaume <[email protected]>
Date: Tue Jun 7 10:56:41 2016 +0200
docman: no need to retrieve unused columns in db query
diff --git a/src/common/docman/DocumentGroup.class.php
b/src/common/docman/DocumentGroup.class.php
index 856a0bc..ede80f2 100644
--- a/src/common/docman/DocumentGroup.class.php
+++ b/src/common/docman/DocumentGroup.class.php
@@ -599,10 +599,7 @@ class DocumentGroup extends FFError {
}
function hasDocument($filename, $stateid = 1) {
- $result = db_query_params('SELECT filename, doc_group, docid
from docdata_vw
- where filename = $1
- and doc_group = $2
- and stateid = $3',
+ $result = db_query_params('SELECT docid from docdata_vw where
filename = $1 and doc_group = $2 and stateid = $3',
array($filename, $this->getID(), $stateid));
if (!$result || db_numrows($result) > 0) {
-----------------------------------------------------------------------
Summary of changes:
src/common/docman/DocumentGroup.class.php | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits