aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-20 11:15:06 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-20 11:15:06 +0200
commit53931017b99c6fc77fc7632747e51b06a89b2287 (patch)
tree26357decc1d3a76471863b3f58a0a0455d637e33 /Zotlabs/Module/Display.php
parente9ca17cec14c5a702cc7d656e5206a3c086dd550 (diff)
downloadvolse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.tar.gz
volse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.tar.bz2
volse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.zip
fix php warnings
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 26d3b9fc2..29d592e19 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -36,7 +36,7 @@ class Display extends \Zotlabs\Web\Controller {
}
}
- if($_REQUEST['mid']) {
+ if(isset($_REQUEST['mid']) && $_REQUEST['mid']) {
$item_hash = $_REQUEST['mid'];
}
@@ -56,6 +56,8 @@ class Display extends \Zotlabs\Web\Controller {
$observer_is_owner = false;
+ $o = '';
+
if(local_channel() && (! $update)) {
$channel = App::get_channel();
@@ -87,7 +89,7 @@ class Display extends \Zotlabs\Web\Controller {
'reset' => t('Reset form')
);
- $o = '<div id="jot-popup">';
+ $o .= '<div id="jot-popup">';
$o .= status_editor($a,$x,false,'Display');
$o .= '</div>';
}
@@ -107,17 +109,21 @@ class Display extends \Zotlabs\Web\Controller {
dbesc($item_hash)
);
- if($r) {
- $target_item = $r[0];
+ if (!$r) {
+ notice( t('Item not found.') . EOL);
+ return '';
}
+ $target_item = $r[0];
+
+ /* not yet ready for prime time
$x = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($target_item['author_xchan'])
);
if($x) {
-// not yet ready for prime time
-// App::$poi = $x[0];
+ App::$poi = $x[0];
}
+ */
//if the item is to be moderated redirect to /moderate
if($target_item['item_blocked'] == ITEM_MODERATED) {