projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed default value for systypes slector.
[fa-stable.git]
/
includes
/
db
/
references_db.inc
diff --git
a/includes/db/references_db.inc
b/includes/db/references_db.inc
index 48b16fad23c12d9d571a24bd74590b9679f3d1b0..16d599e0cc8fce132c28f7dd2f447edce9845e96 100644
(file)
--- a/
includes/db/references_db.inc
+++ b/
includes/db/references_db.inc
@@
-15,7
+15,9
@@
function get_reference($type, $id)
{
$sql = "SELECT * FROM ".TB_PREF."refs WHERE type=$type AND id=$id";
{
$sql = "SELECT * FROM ".TB_PREF."refs WHERE type=$type AND id=$id";
- return db_query($sql, "could not query reference table");
+ $result = db_query($sql, "could not query reference table");
+ $row = db_fetch($result);
+ return $row['reference'];
}
//--------------------------------------------------------------------------------------------------
}
//--------------------------------------------------------------------------------------------------