fix some typos or ancient syntax

This commit is contained in:
ralf 2023-03-07 08:18:58 +01:00
parent bb67507223
commit cba93ad4ce
4 changed files with 6 additions and 6 deletions

View File

@ -359,7 +359,7 @@ class addressbook_hooks
'file_access_user' => true, // file_access supports 4th parameter $user
'file_access'=> 'api.EGroupware\\Api\\Contacts.file_access',
'default_types' => array('n' => array('name' => 'contact', 'options' => array('icon' => 'navbar.png','template' => 'addressbook.edit'))),
// registers an addtional type 'addressbook-email', returning only contacts with email, title has email appended
// registers an additional type 'addressbook-email', returning only contacts with email, title has email appended
'additional' => array(
'addressbook-email' => array(
'query' => 'api.EGroupware\\Api\\Contacts.link_query_email',

View File

@ -370,7 +370,7 @@ abstract class admin_cmd
$vars = get_object_vars($this); // does not work in php5.1.2 due a bug
// data is stored serialized
// paswords are masked / removed, if we dont need them anymore
// passwords are masked / removed, if we don't need them anymore
$vars['data'] = in_array($this->status, self::$require_pw_stati) ?
json_encode($this->data) : self::mask_passwords($this->data);

View File

@ -119,7 +119,7 @@ class admin_customfields
$this->fields = Api\Storage\Customfields::get($this->appname,true);
$this->content_types = Api\Config::get_content_types($this->appname);
}
$this->so = new Api\Storage\Base('phpgwapi','egw_customfields',null,'',true);
$this->so = new Api\Storage\Base('api','egw_customfields',null,'',true);
}
/**
@ -156,7 +156,7 @@ class admin_customfields
$this->content_types = (array)Api\Link::get_registry($this->appname,'default_types');
}
// Set this now, we need to know it for updates
$this->content_type = $content['content_types']['types'] ? $content['content_types']['types'] : (array_key_exists(0,$this->content_types) ? $this->content_types[0] : key($this->content_types));
$this->content_type = $content['content_types']['types'] ?: (array_key_exists(0,$this->content_types) ? $this->content_types[0] : key($this->content_types));
// Common type changes - add, delete
if($content['content_types']['delete'])
@ -717,4 +717,4 @@ class admin_customfields
}
return $total;
}
}
}

View File

@ -175,7 +175,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
'filter' => array('account_id' => null)) +
$search_options;
$results = array();
$is_admin = !!($GLOBALS['egw_info']['user']['apps']['admin']);
$is_admin = !empty($GLOBALS['egw_info']['user']['apps']['admin']);
$total = 0;
// Contacts matching accounts the user does not have permission for cause