PHP 7.2
This commit is contained in:
parent
774334aa88
commit
7b9726a2d3
|
@ -281,7 +281,7 @@ class ldapPublicKey extends baseModule {
|
|||
*/
|
||||
function get_pdfEntries($pdfKeys, $typeId) {
|
||||
$return = array();
|
||||
if (sizeof($this->attributes['sshPublicKey']) > 0) {
|
||||
if (!empty($this->attributes['sshPublicKey'])) {
|
||||
$pdfTable = new PDFTable(_('SSH public keys'));
|
||||
for ($i = 0; $i < sizeof($this->attributes['sshPublicKey']); $i++) {
|
||||
$pdfRow = new PDFTableRow();
|
||||
|
|
|
@ -191,7 +191,7 @@ class quota extends baseModule {
|
|||
$remote->connect($server);
|
||||
$quotas = $remote->execute(implode(quota::$SPLIT_DELIMITER, array($userName, "quota", "get", $this->get_scope())));
|
||||
$remote->disconnect();
|
||||
if (sizeof($quotas) == 0) {
|
||||
if (empty($quotas)) {
|
||||
continue;
|
||||
}
|
||||
$allQuotas = explode(":", $quotas);
|
||||
|
|
Loading…
Reference in New Issue