aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/prep.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/prep.php b/mod/prep.php
index 9d21b0409..950b602c9 100644
--- a/mod/prep.php
+++ b/mod/prep.php
@@ -55,7 +55,7 @@ function prep_content(&$a) {
return;
$r = q("select * from xlink left join xchan on xlink_xchan = xchan_hash where xlink_link like '%s' and xlink_rating != 0 and xlink_static = 1",
- dbesc($a->poi['xchan_hash'])
+ dbesc(($a->poi) ? $a->poi['xchan_hash'] : argv(1))
);
if(! $r)