projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15bb23d
)
r1379 + getPortTypes() can be finally boiled down to a readChapter() call
author
Denis Ovsienko
<infrastation@yandex.ru>
Fri, 7 Dec 2007 15:20:02 +0000
(15:20 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Fri, 7 Dec 2007 15:20:02 +0000
(15:20 +0000)
inc/database.php
patch
|
blob
|
blame
|
history
diff --git
a/inc/database.php
b/inc/database.php
index 3773caac8c836a0f5629c5213b68640a69d0f8f1..6da907dab4d4ba5f958085b6e4665637b7fa1864 100644
(file)
--- a/
inc/database.php
+++ b/
inc/database.php
@@
-213,11
+213,7
@@
function getObjectInfo ($object_id = 0)
function getPortTypes ()
{
- $chapter = readChapter ('PortType');
- $ret = array();
- foreach ($chapter as $entry)
- $ret[$entry['dict_key']] = $entry['dict_value'];
- return $ret;
+ return readChapter ('PortType');
}
function getObjectPortsAndLinks ($object_id = 0)