diff --git a/htdocs/add_attr_form.php b/htdocs/add_attr_form.php
index ba5ece0..80e19db 100644
--- a/htdocs/add_attr_form.php
+++ b/htdocs/add_attr_form.php
@@ -17,7 +17,9 @@ $request['dn'] = get_request('dn','GET');
# Check if the entry exists.
if (! $request['dn'] || ! $app['server']->dnExists($request['dn']))
- error(sprintf(_('The entry (%s) does not exist.'),$request['dn']),'error','index.php');
+{
+ error(sprintf(_('The entry (%s) does not exist.'), $request['dn']), 'error', 'index.php');
+}
$request['page'] = new TemplateRender($app['server']->getIndex(),get_request('template','REQUEST',false,null));
$request['page']->setDN($request['dn']);
@@ -38,10 +40,15 @@ if (get_request('meth','REQUEST') != 'ajax') {
$attr['binary'] = array();
foreach ($request['template']->getAvailAttrs() as $attribute)
+ {
if ($app['server']->isAttrBinary($attribute->getName()))
- array_push($attr['binary'],$attribute);
- else
- array_push($attr['avail'],$attribute);
+ {
+ array_push($attr['binary'], $attribute);
+ } else
+ {
+ array_push($attr['avail'], $attribute);
+ }
+ }
if (count($attr['avail']) > 0) {
echo '
';
@@ -53,9 +60,13 @@ if (get_request('meth','REQUEST') != 'ajax') {
echo '