Skip to content
Snippets Groups Projects
Commit 1e9f2810 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php8-warnings, refs #1733

Merge request !1128
parent f71ee930
Branches
No related tags found
No related merge requests found
Showing
with 68 additions and 45 deletions
...@@ -61,7 +61,7 @@ class Admin_StatusgroupsController extends AuthenticatedController ...@@ -61,7 +61,7 @@ class Admin_StatusgroupsController extends AuthenticatedController
{ {
$lockrule = LockRules::getObjectRule(Context::getId()); $lockrule = LockRules::getObjectRule(Context::getId());
$this->is_locked = LockRules::Check(Context::getId(), 'groups'); $this->is_locked = LockRules::Check(Context::getId(), 'groups');
if ($lockrule->description && $this->is_locked) { if ($lockrule && $lockrule->description && $this->is_locked) {
PageLayout::postMessage(MessageBox::info(formatLinks($lockrule->description))); PageLayout::postMessage(MessageBox::info(formatLinks($lockrule->description)));
} }
// Setup sidebar. // Setup sidebar.
......
...@@ -177,7 +177,7 @@ class Course_MembersController extends AuthenticatedController ...@@ -177,7 +177,7 @@ class Course_MembersController extends AuthenticatedController
PageLayout::postMessage(MessageBox::info(formatLinks($lockdata['description']))); PageLayout::postMessage(MessageBox::info(formatLinks($lockdata['description'])));
} }
} }
$this->to_waitlist_actions = false;
// Check for waitlist availability (influences available actions) // Check for waitlist availability (influences available actions)
// People can be moved to waitlist if waitlist available and no automatic moving up. // People can be moved to waitlist if waitlist available and no automatic moving up.
if (!$sem->admission_disable_waitlist && $sem->admission_disable_waitlist_move if (!$sem->admission_disable_waitlist && $sem->admission_disable_waitlist_move
......
...@@ -39,7 +39,7 @@ class Course_MessengerController extends AuthenticatedController ...@@ -39,7 +39,7 @@ class Course_MessengerController extends AuthenticatedController
$this->thread->markAsRead(); $this->thread->markAsRead();
$this->thread_data = $this->thread->getJSONData(); $this->thread_data = $this->thread->getJSONData();
$_SESSION['already_asked_for_avatar'] = false;
if (!Avatar::getAvatar($GLOBALS['user']->id)->is_customized() && !$_SESSION['already_asked_for_avatar']) { if (!Avatar::getAvatar($GLOBALS['user']->id)->is_customized() && !$_SESSION['already_asked_for_avatar']) {
$_SESSION['already_asked_for_avatar'] = true; $_SESSION['already_asked_for_avatar'] = true;
PageLayout::postInfo(sprintf(_("Wollen Sie ein Avatar-Bild nutzen? %sLaden Sie jetzt ein Bild hoch%s."), '<a href="'.URLHelper::getURL("dispatch.php/avatar/update/user/".$GLOBALS['user']->id).'" data-dialog>', '</a>')); PageLayout::postInfo(sprintf(_("Wollen Sie ein Avatar-Bild nutzen? %sLaden Sie jetzt ein Bild hoch%s."), '<a href="'.URLHelper::getURL("dispatch.php/avatar/update/user/".$GLOBALS['user']->id).'" data-dialog>', '</a>'));
......
...@@ -137,13 +137,16 @@ class Course_StatusgroupsController extends AuthenticatedController ...@@ -137,13 +137,16 @@ class Course_StatusgroupsController extends AuthenticatedController
} }
} }
$groupdata['load'] = true; $groupdata['load'] = true;
} else {
$groupdata['load'] = false;
} }
if (!$this->is_tutor && $g->userMayJoin($GLOBALS['user']->id)) { if (!$this->is_tutor && $g->userMayJoin($GLOBALS['user']->id)) {
$groupdata['joinable'] = true;
$joinable = true; $joinable = true;
} else {
$joinable = false;
} }
$groupdata['joinable'] = $joinable;
$this->groups[] = $groupdata; $this->groups[] = $groupdata;
} }
...@@ -161,8 +164,8 @@ class Course_StatusgroupsController extends AuthenticatedController ...@@ -161,8 +164,8 @@ class Course_StatusgroupsController extends AuthenticatedController
"SELECT `statusgruppe_id` FROM `statusgruppen` WHERE `range_id` = ?", "SELECT `statusgruppe_id` FROM `statusgruppen` WHERE `range_id` = ?",
[$this->course_id]) [$this->course_id])
]); ]);
$ungrouped_count = $ungrouped_count[0]; $this->ungrouped_count = $ungrouped_count[0];
if ($ungrouped_count > 0) { if ($this->ungrouped_count > 0) {
// Create dummy entry for "no group" users. // Create dummy entry for "no group" users.
$no_group = new StdClass(); $no_group = new StdClass();
$no_group->id = 'nogroup'; $no_group->id = 'nogroup';
...@@ -172,7 +175,7 @@ class Course_StatusgroupsController extends AuthenticatedController ...@@ -172,7 +175,7 @@ class Course_StatusgroupsController extends AuthenticatedController
$groupdata = [ $groupdata = [
'group' => $no_group, 'group' => $no_group,
'membercount' => $ungrouped_count, 'membercount' => $this->ungrouped_count,
'joinable' => false, 'joinable' => false,
'invisible_users' => 0, 'invisible_users' => 0,
'members' => [] 'members' => []
...@@ -214,6 +217,8 @@ class Course_StatusgroupsController extends AuthenticatedController ...@@ -214,6 +217,8 @@ class Course_StatusgroupsController extends AuthenticatedController
} }
} }
$this->groups[] = $groupdata; $this->groups[] = $groupdata;
} else {
$this->nogroupmembers = [];
} }
// Prepare search object for MultiPersonSearch. // Prepare search object for MultiPersonSearch.
...@@ -300,6 +305,7 @@ class Course_StatusgroupsController extends AuthenticatedController ...@@ -300,6 +305,7 @@ class Course_StatusgroupsController extends AuthenticatedController
*/ */
public function getgroup_action($group_id) public function getgroup_action($group_id)
{ {
$this->sort_by = '';
if ($group_id != 'nogroup') { if ($group_id != 'nogroup') {
$this->group = Statusgruppen::find($group_id); $this->group = Statusgruppen::find($group_id);
$this->members = []; $this->members = [];
......
...@@ -419,9 +419,9 @@ class Course_WizardController extends AuthenticatedController ...@@ -419,9 +419,9 @@ class Course_WizardController extends AuthenticatedController
private function getValues($classname='') private function getValues($classname='')
{ {
if ($classname) { if ($classname) {
return $_SESSION['coursewizard'][$this->temp_id][$classname] ?: []; return $_SESSION['coursewizard'][$this->temp_id][$classname] ?? [];
} else { } else {
return $_SESSION['coursewizard'][$this->temp_id] ?: []; return $_SESSION['coursewizard'][$this->temp_id] ?? [];
} }
} }
......
...@@ -125,15 +125,15 @@ class JsupdaterController extends AuthenticatedController ...@@ -125,15 +125,15 @@ class JsupdaterController extends AuthenticatedController
private function getBlubberUpdates($pageInfo) private function getBlubberUpdates($pageInfo)
{ {
$data = []; $data = [];
if (is_array($pageInfo['blubber']['threads']) && count($pageInfo['blubber']['threads'])) { if (isset($pageInfo['blubber']['threads']) && is_array($pageInfo['blubber']['threads'])) {
$blubber_data = array(); $blubber_data = [];
foreach ($pageInfo['blubber']['threads'] as $thread_id) { foreach ($pageInfo['blubber']['threads'] as $thread_id) {
$thread = new BlubberThread($thread_id); $thread = new BlubberThread($thread_id);
if ($thread->isReadable()) { if ($thread->isReadable()) {
$comments = BlubberComment::findBySQL("thread_id = :thread_id AND chdate >= :time ORDER BY mkdate ASC", array( $comments = BlubberComment::findBySQL(
'thread_id' => $thread_id, "thread_id = :thread_id AND chdate >= :time ORDER BY mkdate ASC",
'time' => UpdateInformation::getTimestamp() ['thread_id' => $thread_id, 'time' => UpdateInformation::getTimestamp()]
)); );
foreach ($comments as $comment) { foreach ($comments as $comment) {
$blubber_data[$thread_id][] = $comment->getJSONdata(); $blubber_data[$thread_id][] = $comment->getJSONdata();
} }
...@@ -161,14 +161,14 @@ class JsupdaterController extends AuthenticatedController ...@@ -161,14 +161,14 @@ class JsupdaterController extends AuthenticatedController
if (mb_stripos(Request::get("page"), "dispatch.php/blubber") !== false) { if (mb_stripos(Request::get("page"), "dispatch.php/blubber") !== false) {
//collect updated threads for the widget //collect updated threads for the widget
$threads = BlubberThread::findMyGlobalThreads(30, UpdateInformation::getTimestamp()); $threads = BlubberThread::findMyGlobalThreads(30, UpdateInformation::getTimestamp());
$thread_widget_data = array(); $thread_widget_data = [];
foreach ($threads as $thread) { foreach ($threads as $thread) {
$thread_widget_data[] = array( $thread_widget_data[] = [
'thread_id' => $thread->getId(), 'thread_id' => $thread->getId(),
'avatar' => $thread->getAvatar(), 'avatar' => $thread->getAvatar(),
'name' => $thread->getName(), 'name' => $thread->getName(),
'timestamp' => (int) $thread->getLatestActivity() 'timestamp' => (int) $thread->getLatestActivity()
); ];
} }
if (count($thread_widget_data)) { if (count($thread_widget_data)) {
$data['updateThreadWidget'] = $thread_widget_data; $data['updateThreadWidget'] = $thread_widget_data;
...@@ -233,20 +233,27 @@ class JsupdaterController extends AuthenticatedController ...@@ -233,20 +233,27 @@ class JsupdaterController extends AuthenticatedController
private function getQuestionnaireUpdates($pageInfo) private function getQuestionnaireUpdates($pageInfo)
{ {
if (
!isset($pageInfo['questionnaire']['questionnaire_ids'])
|| !is_array($pageInfo['questionnaire']['questionnaire_ids'])
) {
return [];
}
$data = []; $data = [];
if (is_array($pageInfo['questionnaire']['questionnaire_ids'])) { Questionnaire::findEachMany(
foreach ($pageInfo['questionnaire']['questionnaire_ids'] as $questionnaireId) { function (Questionnaire $questionnaire) use ($pageInfo, &$data) {
$questionnaire = new Questionnaire($questionnaireId);
if ($questionnaire->latestAnswerTimestamp() > $pageInfo['questionnaire']['last_update']) { if ($questionnaire->latestAnswerTimestamp() > $pageInfo['questionnaire']['last_update']) {
$template = $this->get_template_factory()->open("questionnaire/evaluate"); $template = $this->get_template_factory()->open("questionnaire/evaluate");
$template->set_layout(null); $template->set_layout(null);
$template->set_attribute("questionnaire", $questionnaire); $template->set_attribute("questionnaire", $questionnaire);
$data[$questionnaire->getId()] = [ $data[$questionnaire->id] = [
'html' => $template->render() 'html' => $template->render()
]; ];
} }
} },
} $pageInfo['questionnaire']['questionnaire_ids']
);
return $data; return $data;
} }
......
...@@ -184,6 +184,7 @@ class MessagesController extends AuthenticatedController { ...@@ -184,6 +184,7 @@ class MessagesController extends AuthenticatedController {
PageLayout::setTitle(_('Neue Nachricht schreiben')); PageLayout::setTitle(_('Neue Nachricht schreiben'));
$this->to = []; $this->to = [];
$this->answer_to = null;
$this->default_message = new Message(); $this->default_message = new Message();
$this->default_attachments = []; $this->default_attachments = [];
......
...@@ -854,7 +854,7 @@ class Module_ModuleController extends MVVController ...@@ -854,7 +854,7 @@ class Module_ModuleController extends MVVController
$this->modulteil_id = $this->modulteil->getId(); $this->modulteil_id = $this->modulteil->getId();
$this->search_lvgruppe($this->modulteil->getId()); $this->search_lvgruppe($this->modulteil->getId());
if (Request::isXhr()) { if (Request::isXhr()) {
$this->render_template('module/module/modulteil_lvg', null); $this->render_template('module/module/modulteil_lvg');
} else { } else {
$this->modul = Modul::get($this->modulteil->modul_id); $this->modul = Modul::get($this->modulteil->modul_id);
$this->modul_id = $this->modul->getId(); $this->modul_id = $this->modul->getId();
...@@ -1037,6 +1037,7 @@ class Module_ModuleController extends MVVController ...@@ -1037,6 +1037,7 @@ class Module_ModuleController extends MVVController
public function details_action($modul_id, $modulteil_id = null) public function details_action($modul_id, $modulteil_id = null)
{ {
$this->institut_id = null;
$this->modul = Modul::get($modul_id); $this->modul = Modul::get($modul_id);
$this->modul_id = $this->modul->isNew() ? null : $this->modul->getId(); $this->modul_id = $this->modul->isNew() ? null : $this->modul->getId();
if ($modulteil_id) { if ($modulteil_id) {
......
...@@ -93,9 +93,8 @@ class Oer_AdminController extends AuthenticatedController ...@@ -93,9 +93,8 @@ class Oer_AdminController extends AuthenticatedController
{ {
$data = $host->askKnownHosts(); $data = $host->askKnownHosts();
$added = 0; $added = 0;
if ($data['hosts']) { if (!empty($data['hosts'])) {
foreach ($data['hosts'] as $host_data) { foreach ($data['hosts'] as $host_data) {
$host = OERHost::findOneByUrl($host_data['url']); $host = OERHost::findOneByUrl($host_data['url']);
if (!$host) { if (!$host) {
$host = new OERHost(); $host = new OERHost();
......
...@@ -240,7 +240,7 @@ class ProfileController extends AuthenticatedController ...@@ -240,7 +240,7 @@ class ProfileController extends AuthenticatedController
//The profile avatar, profile visits and profile score //The profile avatar, profile visits and profile score
//shall be visible in the sidebar. Therefore we must construct //shall be visible in the sidebar. Therefore we must construct
//a generic WidgetElement object and its HTML in here. //a generic WidgetElement object and its HTML in here.
$kings = [];
if (Config::Get()->SCORE_ENABLE) { if (Config::Get()->SCORE_ENABLE) {
if ($this->current_user->user_id === $GLOBALS['user']->id || $this->current_user->score) { if ($this->current_user->user_id === $GLOBALS['user']->id || $this->current_user->score) {
$kings = $this->current_user->getStudipKingIcon(); $kings = $this->current_user->getStudipKingIcon();
......
...@@ -432,7 +432,7 @@ class Shared_ContactsController extends MVVController ...@@ -432,7 +432,7 @@ class Shared_ContactsController extends MVVController
public function add_ansprechpartner_action($origin = 'index', $range_type = null, $range_id = null, $user_id = null, $category = null) public function add_ansprechpartner_action($origin = 'index', $range_type = null, $range_id = null, $user_id = null, $category = null)
{ {
PageLayout::setTitle(_('Ansprechpartner zuordnen')); PageLayout::setTitle(_('Ansprechpartner zuordnen'));
$contact_range = null;
$this->extcontact_search_obj = new SQLSearch("SELECT extern_contact_id, mvv_extern_contacts.name " $this->extcontact_search_obj = new SQLSearch("SELECT extern_contact_id, mvv_extern_contacts.name "
. "FROM mvv_extern_contacts " . "FROM mvv_extern_contacts "
. "WHERE mvv_extern_contacts.name LIKE :input " . "WHERE mvv_extern_contacts.name LIKE :input "
...@@ -528,6 +528,10 @@ class Shared_ContactsController extends MVVController ...@@ -528,6 +528,10 @@ class Shared_ContactsController extends MVVController
$this->ansp_kat = $contact_range->category; $this->ansp_kat = $contact_range->category;
$this->ansp_name = $contact_range->contact->getContactName(); $this->ansp_name = $contact_range->contact->getContactName();
} else { } else {
$this->ansp_status = '';
$this->ansp_altmail = '';
$this->ansp_typ = '';
$this->ansp_kat = '';
$this->ansp_name = ''; $this->ansp_name = '';
} }
......
...@@ -355,6 +355,7 @@ abstract class SharedVersionController extends MVVController ...@@ -355,6 +355,7 @@ abstract class SharedVersionController extends MVVController
public function abschnitte_action($version_id) public function abschnitte_action($version_id)
{ {
$this->abschnitt_id = null;
$this->abschnitte($version_id); $this->abschnitte($version_id);
if (Request::isXhr()) { if (Request::isXhr()) {
$this->render_template('studiengaenge/versionen/abschnitte'); $this->render_template('studiengaenge/versionen/abschnitte');
...@@ -673,6 +674,7 @@ abstract class SharedVersionController extends MVVController ...@@ -673,6 +674,7 @@ abstract class SharedVersionController extends MVVController
public function details_abschnitt_action($abschnitt_id, $modul_id = null) public function details_abschnitt_action($abschnitt_id, $modul_id = null)
{ {
$this->modul_id = $modul_id;
$this->abschnitt = StgteilAbschnitt::find($abschnitt_id); $this->abschnitt = StgteilAbschnitt::find($abschnitt_id);
if (!$this->abschnitt) { if (!$this->abschnitt) {
PageLayout::postError(_('Unbekannter Abschnitt')); PageLayout::postError(_('Unbekannter Abschnitt'));
......
...@@ -35,10 +35,11 @@ class Studiengaenge_StudiengangteileController extends SharedVersionController ...@@ -35,10 +35,11 @@ class Studiengaenge_StudiengangteileController extends SharedVersionController
$search_result = $this->getSearchResult('StudiengangTeil'); $search_result = $this->getSearchResult('StudiengangTeil');
$this->sortby = $this->sortby ?: 'fach_name,zusatz,kp'; $this->sortby = $this->sortby ?: 'fach_name,zusatz,kp';
$this->order = $this->order ?: 'ASC'; $this->order = $this->order ?: 'ASC';
$this->stgteil_id = null;
//get data //get data
if (count($search_result)) { if (count($search_result)) {
$filter['stgteil_id'] = $search_result; $filter['stgteil_id'] = $search_result;
$this->stgteil_id = $search_result;
$this->stgteile = StudiengangTeil::getAllEnriched( $this->stgteile = StudiengangTeil::getAllEnriched(
$this->sortby, $this->order, $this->sortby, $this->order,
$filter, self::$items_per_page, $filter, self::$items_per_page,
...@@ -176,7 +177,7 @@ class Studiengaenge_StudiengangteileController extends SharedVersionController ...@@ -176,7 +177,7 @@ class Studiengaenge_StudiengangteileController extends SharedVersionController
{ {
$this->stgteil = StudiengangTeil::find($stgteil_id); $this->stgteil = StudiengangTeil::find($stgteil_id);
$this->versionen = StgteilVersion::findByStgteil($stgteil_id); $this->versionen = StgteilVersion::findByStgteil($stgteil_id);
$this->version_id = null;
if (count($this->versionen)) { if (count($this->versionen)) {
$this->stgteil_id = $stgteil_id; $this->stgteil_id = $stgteil_id;
if (!Request::isXhr()) { if (!Request::isXhr()) {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<td class="plugin_image"> <td class="plugin_image">
<? if ($plugin['image']): ?> <? if ($plugin['image']): ?>
<a href="<?= htmlReady($plugin['image']) ?>" <a href="<?= htmlReady($plugin['image']) ?>"
data-lightbox="<?= htmlReady($plugin['displayname']) ?>" data-lightbox="<?= htmlReady($plugin['displayname']?? '') ?>"
data-title="<?= htmlReady($name) ?>"> data-title="<?= htmlReady($name) ?>">
<img src="<?= htmlReady($plugin['image']) ?>" class="plugin_preview"> <img src="<?= htmlReady($plugin['image']) ?>" class="plugin_preview">
</a> </a>
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<tbody> <tbody>
<?php <?php
// print dates // print dates
$is_next_date = null;
foreach ($dates as $key => $date) { foreach ($dates as $key => $date) {
$dateSemester = Semester::findByTimestamp($date['date']); $dateSemester = Semester::findByTimestamp($date['date']);
if ($dateSemester && $semester->getId() === $dateSemester->getId()) { if ($dateSemester && $semester->getId() === $dateSemester->getId()) {
......
...@@ -98,8 +98,9 @@ ...@@ -98,8 +98,9 @@
<td class="actions"> <td class="actions">
<?= ActionMenu::get() <?= ActionMenu::get()
->condition(isset($entry['last_posting']))
->addLink( ->addLink(
$controller->url_for("course/forum/index/index/{$entry['last_posting']['topic_id']}#{$entry['last_posting']['topic_id']}"), isset($entry['last_posting']) ? $controller->url_for("course/forum/index/index/{$entry['last_posting']['topic_id']}#{$entry['last_posting']['topic_id']}") : '#no_posting',
_('Zur letzten Antwort'), _('Zur letzten Antwort'),
Icon::create('forum'), Icon::create('forum'),
['class' => 'hidden-small-up'] ['class' => 'hidden-small-up']
......
...@@ -138,7 +138,7 @@ $pagechooser = null; ...@@ -138,7 +138,7 @@ $pagechooser = null;
'num_postings' => $number_of_entries, 'num_postings' => $number_of_entries,
'perPage' => ForumEntry::POSTINGS_PER_PAGE, 'perPage' => ForumEntry::POSTINGS_PER_PAGE,
'pagelink' => str_replace('%%s', '%s', str_replace('%', '%%', $controller->url_for('course/forum/index/goto_page/'. $topic_id .'/'. $section 'pagelink' => str_replace('%%s', '%s', str_replace('%', '%%', $controller->url_for('course/forum/index/goto_page/'. $topic_id .'/'. $section
.'/%s/?searchfor=' . $searchfor . (!empty($options) ? '&'. http_build_query($options) : '' )))) .'/%s/?searchfor=' . ($searchfor ?? '') . (!empty($options) ? '&'. http_build_query($options) : '' ))))
]); ?> ]); ?>
<? endif ?> <? endif ?>
<?= $link ?? '' ?> <?= $link ?? '' ?>
......
...@@ -13,7 +13,7 @@ use Studip\Button; ...@@ -13,7 +13,7 @@ use Studip\Button;
?> ?>
<form action="<?= URLHelper::getLink($save_url) ?>" method="post" class="default"> <form action="<?= URLHelper::getLink() ?>" method="post" class="default">
<?= CSRFProtection::tokenTag() ?> <?= CSRFProtection::tokenTag() ?>
<input name="uebernehmen" value="1" type="hidden"> <input name="uebernehmen" value="1" type="hidden">
<table class="default nohover plus"> <table class="default nohover plus">
...@@ -53,7 +53,7 @@ use Studip\Button; ...@@ -53,7 +53,7 @@ use Studip\Button;
?> ?>
<tr id="<?= htmlReady($anchor); ?>" <tr id="<?= htmlReady($anchor); ?>"
class="<?= $visibility; ?> <?= $pre_check != null ? ' quiet' : '' ?>"> class="<?= $visibility; ?>">
<td class="element" colspan=3> <td class="element" colspan=3>
<div class="plus_basic"> <div class="plus_basic">
...@@ -137,7 +137,7 @@ use Studip\Button; ...@@ -137,7 +137,7 @@ use Studip\Button;
<div class="screenshot_holder"> <div class="screenshot_holder">
<? if (isset($info['screenshot']) || isset($info['screenshots'])) : <? if (isset($info['screenshot']) || isset($info['screenshots'])) :
if (isset($info['screenshots'])) { if (isset($info['screenshots'])) {
$title = $info['screenshots']['pictures'][0]['title']; $title = $info['screenshots']['pictures'][0]['title']??'';
$source = $info['screenshots']['path'] . '/' . $info['screenshots']['pictures'][0]['source']; $source = $info['screenshots']['path'] . '/' . $info['screenshots']['pictures'][0]['source'];
} else { } else {
$fileext = pathinfo($info['screenshot'], PATHINFO_EXTENSION); $fileext = pathinfo($info['screenshot'], PATHINFO_EXTENSION);
...@@ -169,7 +169,7 @@ use Studip\Button; ...@@ -169,7 +169,7 @@ use Studip\Button;
<? for ($i = $cstart; $i < $counter; $i++) :?> <? for ($i = $cstart; $i < $counter; $i++) :?>
<? <?
if (isset($info['screenshots'])) { if (isset($info['screenshots'])) {
$title = $info['screenshots']['pictures'][$i]['title']; $title = $info['screenshots']['pictures'][$i]['title']?? '';
$source = $info['screenshots']['path'] . '/' . $info['screenshots']['pictures'][$i]['source']; $source = $info['screenshots']['path'] . '/' . $info['screenshots']['pictures'][$i]['source'];
} else { } else {
$fileext = pathinfo($info['additionalscreenshots'][$i], PATHINFO_EXTENSION); $fileext = pathinfo($info['additionalscreenshots'][$i], PATHINFO_EXTENSION);
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
'title' => $user_fullname, 'title' => $user_fullname,
]) ?> ]) ?>
<?= htmlReady($user_fullname) ?> <?= htmlReady($user_fullname) ?>
<?php if ($user_id == $m->user_id && $m->visible == 'no') : ?> <?php if ($GLOBALS['user']->id !== $m->user_id && $m->visible == 'no') : ?>
(<?= _('unsichtbar') ?>) (<?= _('unsichtbar') ?>)
<?php endif ?> <?php endif ?>
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment