Skip to content
Snippets Groups Projects
Commit e1af76a7 authored by Moritz Strohm's avatar Moritz Strohm Committed by David Siegfried
Browse files

fix for BIESt 1283, closes #1283

Closes #1283

Merge request !1066
parent 11eefe37
No related branches found
No related tags found
No related merge requests found
Showing
with 41 additions and 37 deletions
...@@ -71,6 +71,8 @@ class Admin_InstallController extends Trails_Controller ...@@ -71,6 +71,8 @@ class Admin_InstallController extends Trails_Controller
$this->valid = true; $this->valid = true;
$this->hide_back_button = false; $this->hide_back_button = false;
return true;
} }
public function index_action() public function index_action()
......
...@@ -755,7 +755,6 @@ class Course_MembersController extends AuthenticatedController ...@@ -755,7 +755,6 @@ class Course_MembersController extends AuthenticatedController
/** /**
* Change the visibilty of an autor * Change the visibilty of an autor
* @return Boolean
*/ */
public function change_visibility_action($cmd, $mode) public function change_visibility_action($cmd, $mode)
{ {
......
...@@ -412,7 +412,7 @@ class MessagesController extends AuthenticatedController { ...@@ -412,7 +412,7 @@ class MessagesController extends AuthenticatedController {
], 'MessageUser::build'); ], 'MessageUser::build');
} }
if (!$this->default_message->receivers->count() && is_array($_SESSION['sms_data']['p_rec'])) { if (!$this->default_message->receivers->count() && !empty($_SESSION['sms_data']['p_rec'])) {
$this->default_message->receivers = DBManager::get()->fetchAll("SELECT user_id,'rec' as snd_rec FROM auth_user_md5 WHERE username IN(?) ORDER BY Nachname,Vorname", [$_SESSION['sms_data']['p_rec']], 'MessageUser::build'); $this->default_message->receivers = DBManager::get()->fetchAll("SELECT user_id,'rec' as snd_rec FROM auth_user_md5 WHERE username IN(?) ORDER BY Nachname,Vorname", [$_SESSION['sms_data']['p_rec']], 'MessageUser::build');
unset($_SESSION['sms_data']); unset($_SESSION['sms_data']);
} }
...@@ -566,8 +566,8 @@ class MessagesController extends AuthenticatedController { ...@@ -566,8 +566,8 @@ class MessagesController extends AuthenticatedController {
$this->default_message['subject'] = Request::get("default_subject"); $this->default_message['subject'] = Request::get("default_subject");
} }
$settings = UserConfig::get($GLOBALS['user']->id)->MESSAGING_SETTINGS; $settings = UserConfig::get($GLOBALS['user']->id)->MESSAGING_SETTINGS;
$this->mailforwarding = Request::get('emailrequest') ? true : $settings['request_mail_forward']; $this->mailforwarding = Request::bool('emailrequest', $settings['request_mail_forward'] ?? false);
$this->show_adressees = Request::get('show_adressees') ? true : $settings['show_adressees'];; $this->show_adressees = Request::bool('show_adressees', $settings['show_adressees'] ?? false);
if (Request::get('inst_id') || Request::get('course_id') || Request::option('group_id') || !Config::get()->SHOW_ADRESSEES_LIMIT) { if (Request::get('inst_id') || Request::get('course_id') || Request::option('group_id') || !Config::get()->SHOW_ADRESSEES_LIMIT) {
$this->show_adressees = null; $this->show_adressees = null;
} }
......
...@@ -67,7 +67,7 @@ class Oer_AddfileController extends AuthenticatedController ...@@ -67,7 +67,7 @@ class Oer_AddfileController extends AuthenticatedController
//Load the folder by its ID. //Load the folder by its ID.
$folder = new Folder($folder_id); $folder = new Folder();
$folder_type = $folder->folder_type; $folder_type = $folder->folder_type;
//Check if the specified folder type is a FolderType implementation. //Check if the specified folder type is a FolderType implementation.
if (is_a($folder_type, 'FolderType', true)) { if (is_a($folder_type, 'FolderType', true)) {
......
...@@ -95,8 +95,8 @@ class Resources_BookingController extends AuthenticatedController ...@@ -95,8 +95,8 @@ class Resources_BookingController extends AuthenticatedController
if ($this->booking->getAssignedUserType() === 'course') { if ($this->booking->getAssignedUserType() === 'course') {
$course = $this->booking->assigned_course_date->course; $course = $this->booking->assigned_course_date->course;
if ($course instanceof Course) { if ($course instanceof Course) {
$has_perms = $GLOBALS['perm']->have_studip_perm('user', $course->id, $user->id); $has_perms = $GLOBALS['perm']->have_studip_perm('user', $course->id, $this->current_user->id);
$vis_perms = $GLOBALS['perm']->have_perm(Config::get()->SEM_VISIBILITY_PERM, $user->id); $vis_perms = $GLOBALS['perm']->have_perm(Config::get()->SEM_VISIBILITY_PERM, $this->current_user->id);
if ($has_perms || $vis_perms || $course->visible) { if ($has_perms || $vis_perms || $course->visible) {
$this->user_may_see_course_data = true; $this->user_may_see_course_data = true;
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
<div class="ui-dialog-content ui-widget-content"> <div class="ui-dialog-content ui-widget-content">
<?php if ($error): ?> <?php if (!empty($error)): ?>
<?= MessageBox::error($error, (array) @$error_details) ?> <?= MessageBox::error($error, (array) @$error_details) ?>
<?php endif; ?> <?php endif; ?>
<?= $content_for_layout ?> <?= $content_for_layout ?>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<?php elseif (!$valid): ?> <?php elseif (!$valid): ?>
<?= Studip\Button::create(_('Erneut prüfen'), 'check') ?> <?= Studip\Button::create(_('Erneut prüfen'), 'check') ?>
<?php elseif ($next_step): ?> <?php elseif ($next_step): ?>
<?= Studip\Button::create($button_label ?: (_('Weiter') . ' >>'), 'continue') ?> <?= Studip\Button::create($button_label ?? (_('Weiter') . ' >>'), 'continue') ?>
<?php else: ?> <?php else: ?>
<?= Studip\Button::create($button_label, 'continue', ['style' => 'visibility: hidden;']) ?> <?= Studip\Button::create($button_label, 'continue', ['style' => 'visibility: hidden;']) ?>
<?php endif; ?> <?php endif; ?>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<?= _('Name der Stud.IP-Installation') ?> <?= _('Name der Stud.IP-Installation') ?>
</label> </label>
<input required type="text" id="system-name" name="system_name" <input required type="text" id="system-name" name="system_name"
value="<?= htmlReady(Request::get('system_name', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_NAME_CLEAN'])) ?>"> value="<?= htmlReady(Request::get('system_name', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_NAME_CLEAN'] ?? '')) ?>">
</div> </div>
<div class="type-text required"> <div class="type-text required">
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<?= _('Id der Stud.IP-Installation') ?> <?= _('Id der Stud.IP-Installation') ?>
</label> </label>
<input required type="text" id="system-id" name="system_id" <input required type="text" id="system-id" name="system_id"
value="<?= htmlReady(Request::get('system_id', $_SESSION['STUDIP_INSTALLATION']['system']['STUDIP_INSTALLATION_ID'])) ?>" value="<?= htmlReady(Request::get('system_id', $_SESSION['STUDIP_INSTALLATION']['system']['STUDIP_INSTALLATION_ID'] ?? '')) ?>"
placeholder="<?= _('Eindeutiges, gängiges Kürzel Ihrer Einrichtung') ?>"> placeholder="<?= _('Eindeutiges, gängiges Kürzel Ihrer Einrichtung') ?>">
</div> </div>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<?= _('E-Mail-Adresse für Kontakt') ?> <?= _('E-Mail-Adresse für Kontakt') ?>
</label> </label>
<input required type="email" id="system-email" name="system_email" <input required type="email" id="system-email" name="system_email"
value="<?= htmlReady(Request::get('system_email', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_CONTACT'])) ?>"> value="<?= htmlReady(Request::get('system_email', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_CONTACT'] ?? '')) ?>">
</div> </div>
<div class="type-text required"> <div class="type-text required">
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<?= _('URL der Stud.IP-Installation') ?> <?= _('URL der Stud.IP-Installation') ?>
</label> </label>
<input required type="url" id="system-url" name="system_url" <input required type="url" id="system-url" name="system_url"
value="<?= htmlReady(Request::get('system_url', $_SESSION['STUDIP_INSTALLATION']['system']['ABSOLUTE_URI_STUDIP'] ?: $defaults['system_url'])) ?>" value="<?= htmlReady(Request::get('system_url', $_SESSION['STUDIP_INSTALLATION']['system']['ABSOLUTE_URI_STUDIP'] ?? $defaults['system_url'])) ?>"
placeholder="https://"> placeholder="https://">
</div> </div>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<?= _('URL der betreibenden Einrichtung') ?> <?= _('URL der betreibenden Einrichtung') ?>
</label> </label>
<input type="url" id="system-host-url" name="system_host_url" <input type="url" id="system-host-url" name="system_host_url"
value="<?= htmlReady(Request::get('system_host_url', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_URL'])) ?>" value="<?= htmlReady(Request::get('system_host_url', $_SESSION['STUDIP_INSTALLATION']['system']['UNI_URL'] ?? '')) ?>"
placeholder="https://"> placeholder="https://">
</div> </div>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="type-text required"> <div class="type-text required">
<label for="username" class="vertical"><?= _('Nutzername') ?></label> <label for="username" class="vertical"><?= _('Nutzername') ?></label>
<input required type="text" id="username" name="username" minlength="4" <input required type="text" id="username" name="username" minlength="4"
value="<?= htmlReady(Request::get('username', $_SESSION['STUDIP_INSTALLATION']['root']['username'])) ?>"> value="<?= htmlReady(Request::get('username', $_SESSION['STUDIP_INSTALLATION']['root']['username'] ?? '')) ?>">
</div> </div>
<div class="type-text required"> <div class="type-text required">
...@@ -24,18 +24,18 @@ ...@@ -24,18 +24,18 @@
<div class="type-text required"> <div class="type-text required">
<label for="first_name" class="vertical"><?= _('Vorname') ?></label> <label for="first_name" class="vertical"><?= _('Vorname') ?></label>
<input required type="text" id="first_name" name="first_name" <input required type="text" id="first_name" name="first_name"
value="<?= htmlReady(Request::get('first_name', $_SESSION['STUDIP_INSTALLATION']['root']['first_name'])) ?>"> value="<?= htmlReady(Request::get('first_name', $_SESSION['STUDIP_INSTALLATION']['root']['first_name'] ?? '')) ?>">
</div> </div>
<div class="type-text required"> <div class="type-text required">
<label for="last_name" class="vertical"><?= _('Nachname') ?></label> <label for="last_name" class="vertical"><?= _('Nachname') ?></label>
<input required type="text" id="last_name" name="last_name" <input required type="text" id="last_name" name="last_name"
value="<?= htmlReady(Request::get('last_name', $_SESSION['STUDIP_INSTALLATION']['root']['last_name'])) ?>"> value="<?= htmlReady(Request::get('last_name', $_SESSION['STUDIP_INSTALLATION']['root']['last_name'] ?? '')) ?>">
</div> </div>
<div class="type-text required"> <div class="type-text required">
<label for="email" class="vertical"><?= _('E-Mail-Adresse') ?></label> <label for="email" class="vertical"><?= _('E-Mail-Adresse') ?></label>
<input required type="email" id="email" name="email" value="<?= htmlReady(Request::get('user', $_SESSION['STUDIP_INSTALLATION']['root']['email'])) ?>"> <input required type="email" id="email" name="email" value="<?= htmlReady(Request::get('user', $_SESSION['STUDIP_INSTALLATION']['root']['email'] ?? '')) ?>">
</div> </div>
<p style="margin-top: 1em;"> <p style="margin-top: 1em;">
......
...@@ -40,14 +40,14 @@ ...@@ -40,14 +40,14 @@
<tbody aria-relevant="additions" aria-live="polite" data-shiftcheck> <tbody aria-relevant="additions" aria-live="polite" data-shiftcheck>
<? if (count($messages) > 0) : ?> <? if (count($messages) > 0) : ?>
<? if ($more || (Request::int("offset") > 0)) : ?> <? if (!empty($more) || (Request::int("offset") > 0)) : ?>
<noscript> <noscript>
<tr> <tr>
<td colspan="8"> <td colspan="8">
<? if (Request::int("offset") > 0) : ?> <? if (Request::int("offset") > 0) : ?>
<a title="<?= _("zurück") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") - $messageBufferCount > 0 ? Request::int("offset") - $messageBufferCount : null]) ?>"><?= Icon::create('arr_1left', 'clickable')->asImg(["class" => "text-bottom"]) ?></a> <a title="<?= _("zurück") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") - $messageBufferCount > 0 ? Request::int("offset") - $messageBufferCount : null]) ?>"><?= Icon::create('arr_1left', 'clickable')->asImg(["class" => "text-bottom"]) ?></a>
<? endif ?> <? endif ?>
<? if ($more) : ?> <? if (!empty($more)) : ?>
<div style="float:right"> <div style="float:right">
<a title="<?= _("weiter") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") + $messageBufferCount]) ?>"><?= Icon::create('arr_1right', 'clickable')->asImg(["class" => "text-bottom"]) ?></a> <a title="<?= _("weiter") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") + $messageBufferCount]) ?>"><?= Icon::create('arr_1right', 'clickable')->asImg(["class" => "text-bottom"]) ?></a>
</div> </div>
...@@ -57,16 +57,16 @@ ...@@ -57,16 +57,16 @@
</noscript> </noscript>
<? endif ?> <? endif ?>
<? foreach ($messages as $message) : ?> <? foreach ($messages as $message) : ?>
<?= $this->render_partial("messages/_message_row.php", compact("message", "received")) ?> <?= $this->render_partial('messages/_message_row.php', ['message' => $message, 'received' => $received, 'settings' => $settings]) ?>
<? endforeach ?> <? endforeach ?>
<? if ($more || (Request::int("offset") > 0)) : ?> <? if (!empty($more) || (Request::int("offset") > 0)) : ?>
<noscript> <noscript>
<tr> <tr>
<td colspan="7"> <td colspan="7">
<? if (Request::int("offset") > 0) : ?> <? if (Request::int("offset") > 0) : ?>
<a title="<?= _("zurück") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") - $messageBufferCount > 0 ? Request::int("offset") - $messageBufferCount : null]) ?>"><?= Icon::create('arr_1left', 'clickable')->asImg(["class" => "text-bottom"]) ?></a> <a title="<?= _("zurück") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") - $messageBufferCount > 0 ? Request::int("offset") - $messageBufferCount : null]) ?>"><?= Icon::create('arr_1left', 'clickable')->asImg(["class" => "text-bottom"]) ?></a>
<? endif ?> <? endif ?>
<? if ($more) : ?> <? if (!empty($more)) : ?>
<div style="float:right"> <div style="float:right">
<a title="<?= _("weiter") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") + $messageBufferCount]) ?>"><?= Icon::create('arr_1right', 'clickable')->asImg(["class" => "text-bottom"]) ?></a> <a title="<?= _("weiter") ?>" href="<?= URLHelper::getLink("?", ['offset' => Request::int("offset") + $messageBufferCount]) ?>"><?= Icon::create('arr_1right', 'clickable')->asImg(["class" => "text-bottom"]) ?></a>
</div> </div>
......
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
name="message_tags" name="message_tags"
style="width: 100%" style="width: 100%"
placeholder="<?= _("z.B. klausur termin statistik etc.") ?>" placeholder="<?= _("z.B. klausur termin statistik etc.") ?>"
value="<?= htmlReady($default_tags) ?>"> value="<?= htmlReady($default_tags ?? '') ?>">
</label> </label>
</div> </div>
<div id="settings" style="display: none;"> <div id="settings" style="display: none;">
......
...@@ -240,7 +240,7 @@ class AutoInsert ...@@ -240,7 +240,7 @@ class AutoInsert
* @param string $status Status for autoinsertion * @param string $status Status for autoinsertion
* @param bool $remove Whether the record should be added or removed * @param bool $remove Whether the record should be added or removed
*/ */
public static function updateSeminar($seminar_id, $domain = '', $status, $remove = false) public static function updateSeminar($seminar_id, $domain, $status, $remove = false)
{ {
$query = $remove ? "DELETE FROM auto_insert_sem WHERE seminar_id = ? AND status= ? AND domain_id = ?" : "INSERT IGNORE INTO auto_insert_sem (seminar_id, status,domain_id) VALUES (?, ?, ?)"; $query = $remove ? "DELETE FROM auto_insert_sem WHERE seminar_id = ? AND status= ? AND domain_id = ?" : "INSERT IGNORE INTO auto_insert_sem (seminar_id, status,domain_id) VALUES (?, ?, ?)";
$statement = DBManager::get()->prepare($query); $statement = DBManager::get()->prepare($query);
......
...@@ -36,7 +36,7 @@ class LinkButton extends Interactable ...@@ -36,7 +36,7 @@ class LinkButton extends Interactable
public function __toString() public function __toString()
{ {
// add "button" to attribute @class // add "button" to attribute @class
if (!isset($this->attributes['class'])) { if (empty($this->attributes['class'])) {
$this->attributes['class'] = ''; $this->attributes['class'] = '';
} }
$this->attributes['class'] .= ' button'; $this->attributes['class'] .= ' button';
......
...@@ -7,10 +7,10 @@ class InvalidAuthTokenException extends \AccessDeniedException ...@@ -7,10 +7,10 @@ class InvalidAuthTokenException extends \AccessDeniedException
/** /**
* Create a new InvalidAuthTokenException for different auth tokens. * Create a new InvalidAuthTokenException for different auth tokens.
* *
* @return static * @return InvalidAuthTokenException
*/ */
public static function different() public static function different()
{ {
return new static('The provided auth token for the request is different from the session auth token.'); return new InvalidAuthTokenException('The provided auth token for the request is different from the session auth token.');
} }
} }
...@@ -170,7 +170,7 @@ final class SystemChecker ...@@ -170,7 +170,7 @@ final class SystemChecker
$required['value'] = $this->parseSize($required['value']); $required['value'] = $this->parseSize($required['value']);
} }
$cmp = $required['cmp']; $cmp = $required['cmp'] ?? '';
if (is_bool($required['value'])) { if (is_bool($required['value'])) {
$valid = $present == $required['value']; $valid = $present == $required['value'];
......
...@@ -384,7 +384,7 @@ abstract class RouteMap ...@@ -384,7 +384,7 @@ abstract class RouteMap
foreach ($input as $part) { foreach ($input as $part) {
$part = ltrim($part, "\r\n"); $part = ltrim($part, "\r\n");
list($head, $body) = explode("\r\n\r\n", $part, 2); [$head, $body] = explode("\r\n\r\n", $part, 2);
$tmpheaders = $headers = []; $tmpheaders = $headers = [];
foreach (explode("\r\n", $head) as $headline) { foreach (explode("\r\n", $head) as $headline) {
...@@ -621,7 +621,7 @@ abstract class RouteMap ...@@ -621,7 +621,7 @@ abstract class RouteMap
$this->response['ETag'] = $value; $this->response['ETag'] = $value;
if ($this->response->isSuccess() || $this->response->status === 304) { if ($this->response->isSuccess() || $this->response->status === 304) {
if ($this->etagMatches($_SERVER['HTTP_IF_NONE_MATCH'], $new_resource)) { if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $this->etagMatches($_SERVER['HTTP_IF_NONE_MATCH'], $new_resource)) {
$this->halt($this->isRequestSafe() ? 304 : 412); $this->halt($this->isRequestSafe() ? 304 : 412);
} }
if (isset($_SERVER['HTTP_IF_MATCH']) if (isset($_SERVER['HTTP_IF_MATCH'])
...@@ -1036,7 +1036,7 @@ abstract class RouteMap ...@@ -1036,7 +1036,7 @@ abstract class RouteMap
protected function extractConditions($docblock, $conditions = []) protected function extractConditions($docblock, $conditions = [])
{ {
foreach ($docblock->getTags('condition') as $condition) { foreach ($docblock->getTags('condition') as $condition) {
list($var, $pattern) = explode(' ', $condition->getDescription(), 2); [$var, $pattern] = explode(' ', $condition->getDescription(), 2);
$conditions[$var] = $pattern; $conditions[$var] = $pattern;
} }
......
...@@ -28,7 +28,7 @@ class Ilias4ContentModule extends Ilias3ContentModule ...@@ -28,7 +28,7 @@ class Ilias4ContentModule extends Ilias3ContentModule
* @param string $module_type module-type * @param string $module_type module-type
* @param string $cms_type system-type * @param string $cms_type system-type
*/ */
function __construct($module_id = "", $module_type, $cms_type) function __construct($module_id, $module_type, $cms_type)
{ {
parent::__construct($module_id, $module_type, $cms_type); parent::__construct($module_id, $module_type, $cms_type);
} }
......
...@@ -224,7 +224,7 @@ class CourseDate extends SimpleORMap implements PrivacyObject ...@@ -224,7 +224,7 @@ class CourseDate extends SimpleORMap implements PrivacyObject
*/ */
public function getRoomName() public function getRoomName()
{ {
if (Config::get()->RESOURCES_ENABLE && $this->room_booking->resource) { if (Config::get()->RESOURCES_ENABLE && !empty($this->room_booking->resource)) {
return $this->room_booking->resource->name; return $this->room_booking->resource->name;
} }
return $this['raum']; return $this['raum'];
...@@ -237,7 +237,7 @@ class CourseDate extends SimpleORMap implements PrivacyObject ...@@ -237,7 +237,7 @@ class CourseDate extends SimpleORMap implements PrivacyObject
*/ */
public function getRoom() public function getRoom()
{ {
if (Config::get()->RESOURCES_ENABLE && $this->room_booking->resource) { if (Config::get()->RESOURCES_ENABLE && !empty($this->room_booking->resource)) {
return $this->room_booking->resource->getDerivedClassInstance(); return $this->room_booking->resource->getDerivedClassInstance();
} }
return null; return null;
......
...@@ -444,6 +444,8 @@ class StructuralElement extends \SimpleORMap ...@@ -444,6 +444,8 @@ class StructuralElement extends \SimpleORMap
return true; return true;
} }
} }
//User not found.
return false;
} }
private function hasWriteApproval($user): bool private function hasWriteApproval($user): bool
......
...@@ -111,6 +111,7 @@ class DatafieldEntryModel extends SimpleORMap implements PrivacyObject ...@@ -111,6 +111,7 @@ class DatafieldEntryModel extends SimpleORMap implements PrivacyObject
if (!$object_type) { if (!$object_type) {
throw new InvalidArgumentException('Wrong type of model: ' . get_class($model)); throw new InvalidArgumentException('Wrong type of model: ' . get_class($model));
} }
$one_datafield = '';
if ($datafield_id !== null) { if ($datafield_id !== null) {
$one_datafield = ' AND a.datafield_id = ' . DBManager::get()->quote($datafield_id); $one_datafield = ' AND a.datafield_id = ' . DBManager::get()->quote($datafield_id);
} else { } else {
......
...@@ -165,7 +165,7 @@ class MetaDate ...@@ -165,7 +165,7 @@ class MetaDate
* @param CycleData $cycle * @param CycleData $cycle
* @return boolean * @return boolean
*/ */
function setCycleData($data = [], $cycle) function setCycleData($data, $cycle)
{ {
$cycle->seminar_id = $this->getSeminarId(); $cycle->seminar_id = $this->getSeminarId();
$cycles = array_keys($this->cycles); $cycles = array_keys($this->cycles);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment