Skip to content
Snippets Groups Projects
Commit 7808a596 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

prevent warning in StudipCoreFormat, fixes #2174

Closes #2174

Merge request studip/studip!1402
parent cd54b1c2
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -473,7 +473,7 @@ class StudipCoreFormat extends TextFormat
*/
protected static function markupQuote($markup, $matches, $contents)
{
if (mb_strlen($matches[1]) > 1) {
if (isset($matches[1]) && mb_strlen($matches[1]) > 1) {
$title = sprintf(_('%s hat geschrieben:'), $markup->format(mb_substr($matches[1], 1)));
return sprintf('<blockquote><div class="author">%s</div>%s</blockquote>',
$title, trim($contents));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment