https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f7c12
)
Add frio.scheme pconfig value type check
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 9 Mar 2019 03:05:14 +0000
(22:05 -0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 9 Mar 2019 03:05:14 +0000
(22:05 -0500)
- Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-
471118589
view/theme/frio/php/default.php
patch
|
blob
|
history
diff --git
a/view/theme/frio/php/default.php
b/view/theme/frio/php/default.php
index
b9600cc
..
29d7ab5
100644
(file)
--- a/
view/theme/frio/php/default.php
+++ b/
view/theme/frio/php/default.php
@@
-44,7
+44,7
@@
$is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
// It makes mobile Chrome UI match Frio's top bar color.
$uid = Profile::getThemeUid($a);
$scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema'));
- if ($scheme &&
($scheme != '---')
) {
+ if ($scheme &&
is_string($scheme) && $scheme != '---'
) {
if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
$schemefile = 'view/theme/frio/scheme/' . $scheme . '.php';
require_once $schemefile;