This commit is contained in:
Roland Gruber 2018-05-01 09:41:30 +02:00
parent 774334aa88
commit 7b9726a2d3
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ class ldapPublicKey extends baseModule {
*/ */
function get_pdfEntries($pdfKeys, $typeId) { function get_pdfEntries($pdfKeys, $typeId) {
$return = array(); $return = array();
if (sizeof($this->attributes['sshPublicKey']) > 0) { if (!empty($this->attributes['sshPublicKey'])) {
$pdfTable = new PDFTable(_('SSH public keys')); $pdfTable = new PDFTable(_('SSH public keys'));
for ($i = 0; $i < sizeof($this->attributes['sshPublicKey']); $i++) { for ($i = 0; $i < sizeof($this->attributes['sshPublicKey']); $i++) {
$pdfRow = new PDFTableRow(); $pdfRow = new PDFTableRow();

View File

@ -191,7 +191,7 @@ class quota extends baseModule {
$remote->connect($server); $remote->connect($server);
$quotas = $remote->execute(implode(quota::$SPLIT_DELIMITER, array($userName, "quota", "get", $this->get_scope()))); $quotas = $remote->execute(implode(quota::$SPLIT_DELIMITER, array($userName, "quota", "get", $this->get_scope())));
$remote->disconnect(); $remote->disconnect();
if (sizeof($quotas) == 0) { if (empty($quotas)) {
continue; continue;
} }
$allQuotas = explode(":", $quotas); $allQuotas = explode(":", $quotas);