Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17833
Modified Files:
graphviz_api.php
Log Message:
Added is_edge_present used by adm_status_automa.php
Index: graphviz_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/graphviz_api.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- graphviz_api.php 14 Oct 2004 17:24:28 -0000 1.2
+++ graphviz_api.php 2 Nov 2004 19:53:24 -0000 1.3
@@ -217,6 +217,15 @@
'dst' => $p_dst,
'attributes' => $p_attributes
);
+ # --------------------
+ # Check if an edge is already present.
+ function is_edge_present( $p_src, $p_dst ) {
+ foreach( $this->edges as $t_edge ) {
+ if( $t_edge['src'] == $p_src && $t_edge['dst']
== $p_dst ) {
+ return true;
+ }
+ }
+ return false;
}
# --------------------
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
|