summaryrefslogtreecommitdiff
path: root/modules/meta.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-07 22:02:34 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-07 22:02:34 +0000
commita382d9ea4a137711d9521aed133addfb49a01faf (patch)
treeef05606a8bf8b5c6d65100b0880b5862ea9b9805 /modules/meta.module
parent5077cafd3860706a983ca4a3624e68b2f321d446 (diff)
downloadbrdo-a382d9ea4a137711d9521aed133addfb49a01faf.tar.gz
brdo-a382d9ea4a137711d9521aed133addfb49a01faf.tar.bz2
- Fixed bug in page.module:
+ PHP-pages were rendered invalid under certain criteria. - Fixed bug in meta.module: + When editing an existing node, the meta-field was not properly set in the forms.
Diffstat (limited to 'modules/meta.module')
-rw-r--r--modules/meta.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/meta.module b/modules/meta.module
index bb2750093..769fa6351 100644
--- a/modules/meta.module
+++ b/modules/meta.module
@@ -25,6 +25,9 @@ function meta_form($type, $edit = array()) {
unset($array);
$t = db_query("SELECT * FROM tag WHERE collections LIKE '%$collection->name%'");
while ($tag = db_fetch_object($t)) {
+ if (strstr($edit[attributes], $tag->attributes)) {
+ $edit[$collection->name] = $tag->attributes;
+ }
$array[$tag->attributes] = $tag->name;
}
$form .= form_select($collection->name, $collection->name, $edit[$collection->name], $array);