[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [20909] Bug fix : add missing exist function
From: |
Pascal Vilarem |
Subject: |
[Phpgroupware-cvs] [20909] Bug fix : add missing exist function |
Date: |
Tue, 05 Jan 2010 17:24:12 +0000 |
Revision: 20909
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=20909
Author: maat
Date: 2010-01-05 17:24:12 +0000 (Tue, 05 Jan 2010)
Log Message:
-----------
Bug fix : add missing exist function
Modified Paths:
--------------
modules/ged/trunk/inc/class.ged_dm.inc.php
Modified: modules/ged/trunk/inc/class.ged_dm.inc.php
===================================================================
--- modules/ged/trunk/inc/class.ged_dm.inc.php 2010-01-05 17:17:18 UTC (rev
20908)
+++ modules/ged/trunk/inc/class.ged_dm.inc.php 2010-01-05 17:24:12 UTC (rev
20909)
@@ -559,7 +559,7 @@
return "OK";
}
-
+
function update_version($amended_version)
{
@@ -3426,6 +3426,29 @@
}
+ function exist($element_id)
+ {
+
+ $db2 = clone($this->db);
+ $sql="SELECT * FROM ged_elements where element_id =
".$element_id;
+ $db2->query($sql, __LINE__, __FILE__);
+
+ if($db2->next_record())
+ {
+ $result=true;
+ }
+ else
+ {
+ $result=false;
+ }
+
+ $db2->unlock();
+ $db2->free();
+ unset($db2);
+
+ return($result);
+ }
+
function get_type_place($doc_type, $project_root_id=null)
{
if ( isset($project_root_id))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [20909] Bug fix : add missing exist function,
Pascal Vilarem <=