From da2ea9e2ae2dd2123ef57c83ac63072de87645b5 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 12 Nov 2024 07:53:34 +0100 Subject: [PATCH] #342 usability --- lam/lib/modules/eduPerson.inc | 4 +++- lam/lib/modules/pykotaUser.inc | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lam/lib/modules/eduPerson.inc b/lam/lib/modules/eduPerson.inc index 5ccf5867a..ef666eea8 100644 --- a/lam/lib/modules/eduPerson.inc +++ b/lam/lib/modules/eduPerson.inc @@ -411,7 +411,9 @@ class eduPerson extends baseModule { if (isset($_POST['addeduPersonScopedAffiliation'])) { $this->attributes['eduPersonScopedAffiliation'][] = ''; } - $this->attributes['eduPersonScopedAffiliation'] = array_values(array_unique($this->attributes['eduPersonScopedAffiliation'])); + if (!empty($this->attributes['eduPersonScopedAffiliation'])) { + $this->attributes['eduPersonScopedAffiliation'] = array_values(array_unique($this->attributes['eduPersonScopedAffiliation'])); + } // principal name $this->attributes['eduPersonPrincipalName'][0] = $_POST['eduPersonPrincipalName']; if (($_POST['eduPersonPrincipalName'] != '') && !preg_match('/^[0-9a-z_\\.@-]+$/i', $_POST['eduPersonPrincipalName'])) { diff --git a/lam/lib/modules/pykotaUser.inc b/lam/lib/modules/pykotaUser.inc index 22bcbf5a6..851080a13 100644 --- a/lam/lib/modules/pykotaUser.inc +++ b/lam/lib/modules/pykotaUser.inc @@ -560,7 +560,6 @@ class pykotaUser extends baseModule { */ function display_html_payments() { $container = new htmlResponsiveRow(); - $container->setCSSClasses(['maxrow']); // total paid $total = ''; if (!empty($this->attributes['pykotaLifeTimePaid'][0])) { @@ -617,7 +616,6 @@ class pykotaUser extends baseModule { */ function display_html_jobs() { $container = new htmlResponsiveRow(); - $container->setCSSClasses(['maxrow']); // jobs $jobs = $this->getJobs($this->getCurrentUserName(), $this->moduleSettings['pykotaUser_jobSuffix'][0]); $titles = [ @@ -634,7 +632,7 @@ class pykotaUser extends baseModule { ]; } $table = new htmlResponsiveTable($titles, $data); - $table->setWidths(['20%', '20%', '15%', '15%', '30%']); + $table->setWidths(['20%', '20%', '10%', '10%', '40%']); $container->add($table); // back button $container->addVerticalSpacer('2rem');