<?php
/***************************************************************************
- * Copyright (C) 2003-2011 Polytechnique.org *
+ * Copyright (C) 2003-2014 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
$addresses = array();
if (is_null($value)) {
- $it = Address::iterate(array($page->pid()), array(Address::LINK_PROFILE), array(0));
+ $it = Address::iterate(array($page->pid()), array(Address::LINK_PROFILE), array(0), Visibility::get(Visibility::VIEW_ADMIN));
while ($address = $it->next()) {
$addresses[] = $address->toFormArray();
}
if (count($addresses) == 0) {
- $address = new Address();
+ $address = new Address(array('mail' => 1));
$addresses[] = $address->toFormArray();
}
return $addresses;
}
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
?>