git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
765d694
)
page: silence php warning of undefined user
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 14 Jun 2018 09:13:42 +0000
(11:13 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 14 Jun 2018 12:45:19 +0000
(14:45 +0200)
Broken since commit
v2.6-18-g297195ea7c
(2018-06-09)
[page: set placeholder after page script].
page.php
patch
|
blob
|
history
diff --git
a/page.php
b/page.php
index 554735c69b53f9f0db275d5c6ea2fe6df80a4198..50e098acaf1c0606e1483bca1886124f04339c31 100644
(file)
--- a/
page.php
+++ b/
page.php
@@
-152,7
+152,7
@@
if ($Page) {
}
$Place += [
}
$Place += [
- 'user' =>
$User ? $User['name'] : ''
,
+ 'user' =>
empty($User) ? '' : $User['name']
,
'url' => htmlspecialchars($_SERVER['REQUEST_URI']),
];
'url' => htmlspecialchars($_SERVER['REQUEST_URI']),
];