From: Andreas Gohr Date: Wed, 20 Jun 2007 12:55:36 +0000 (+0200) Subject: fixed problem with Ajax tag editing X-Git-Tag: 0.7.1~57 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=373aba15e4a5e4f89a3726f0c49c74127af37313;p=contagged fixed problem with Ajax tag editing darcs-hash:20070620125536-6e07b-acdbf43e7a58997d857b7198d6e493517210ee4d.gz --- diff --git a/ajax.php b/ajax.php index 7e16b2f..eeacb17 100644 --- a/ajax.php +++ b/ajax.php @@ -88,9 +88,9 @@ function ajax_loadtags($dn,$type='plain'){ $entry = $result[0]; if($type == 'plain'){ - echo join(', ',$entry[$FIELDS['_marker']]); + echo join(', ',(array) $entry[$FIELDS['_marker']]); }else{ - foreach ($entry[$FIELDS['_marker']] as $tag){ + foreach ((array) $entry[$FIELDS['_marker']] as $tag){ echo '';