aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-04-23 19:09:12 +0000
committerMario <mario@mariovavti.com>2025-04-23 19:09:12 +0000
commit6515443957edc905013dd8c76a8468404f5e6d3f (patch)
treedf17c05b5dbcd6f42002e3a652a1d40dfad5c5da
parent8b352e4c643ee4ba780433ced68a58127329978e (diff)
downloadvolse-hubzilla-6515443957edc905013dd8c76a8468404f5e6d3f.tar.gz
volse-hubzilla-6515443957edc905013dd8c76a8468404f5e6d3f.tar.bz2
volse-hubzilla-6515443957edc905013dd8c76a8468404f5e6d3f.zip
more deprecate x()
-rw-r--r--Zotlabs/Module/Home.php4
-rw-r--r--Zotlabs/Web/Session.php2
-rw-r--r--include/text.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Home.php b/Zotlabs/Module/Home.php
index 3ac445f9f..39a1c8ea4 100644
--- a/Zotlabs/Module/Home.php
+++ b/Zotlabs/Module/Home.php
@@ -68,9 +68,9 @@ class Home extends Controller {
$o = '';
- if (x($_SESSION, 'theme'))
+ if (isset($_SESSION['theme']))
unset($_SESSION['theme']);
- if (x($_SESSION, 'mobile_theme'))
+ if (isset($_SESSION['mobile_theme']))
unset($_SESSION['mobile_theme']);
$splash = ((argc() > 1 && argv(1) === 'splash') ? true : false);
diff --git a/Zotlabs/Web/Session.php b/Zotlabs/Web/Session.php
index ec26e6b0d..1762d3832 100644
--- a/Zotlabs/Web/Session.php
+++ b/Zotlabs/Web/Session.php
@@ -132,7 +132,7 @@ class Session {
else
logger('no session handler');
- if (x($_COOKIE, 'jsdisabled')) {
+ if (!empty($_COOKIE['jsdisabled'])) {
setcookie(
'jsdisabled',
$_COOKIE['jsdisabled'],
diff --git a/include/text.php b/include/text.php
index fec02a74f..4297174b2 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2188,7 +2188,7 @@ function get_plink($item,$conversation_mode = true) {
if(array_key_exists('author',$item) && $item['author']['xchan_network'] !== 'zot6')
$zidify = false;
- if(x($item,$key)) {
+ if(!empty($item[$key])) {
return array(
'href' => (($zidify) ? zid($item[$key]) : $item[$key]),
'title' => t('Link to Source'),