mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Try to avoid error opening Addressbook policy
This commit is contained in:
parent
dd95002b8b
commit
1064cdeff2
@ -1340,9 +1340,9 @@ abstract class admin_cmd
|
|||||||
{
|
{
|
||||||
static $tpl = null; // some caching to not instanciate it twice
|
static $tpl = null; // some caching to not instanciate it twice
|
||||||
|
|
||||||
if (!isset($tpl))
|
$name = $this->get_etemplate_name();
|
||||||
|
if (!isset($tpl) || $tpl->id !== $name)
|
||||||
{
|
{
|
||||||
$name = $this->get_etemplate_name();
|
|
||||||
if (empty($name))
|
if (empty($name))
|
||||||
{
|
{
|
||||||
$tpl = false;
|
$tpl = false;
|
||||||
@ -1363,7 +1363,7 @@ abstract class admin_cmd
|
|||||||
*/
|
*/
|
||||||
function get_change_labels()
|
function get_change_labels()
|
||||||
{
|
{
|
||||||
$labels = [];
|
$labels = [];
|
||||||
$label = null;
|
$label = null;
|
||||||
if (($tpl = $this->get_etemplate()))
|
if (($tpl = $this->get_etemplate()))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user