diff options
-rw-r--r-- | include/cronhooks.php | 2 | ||||
-rw-r--r-- | mod/item.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/cronhooks.php b/include/cronhooks.php index a4eb5fbb3..37541f013 100644 --- a/include/cronhooks.php +++ b/include/cronhooks.php @@ -1,3 +1,5 @@ +<?php + require_once("boot.php"); diff --git a/mod/item.php b/mod/item.php index 54472e268..ef0b232d5 100644 --- a/mod/item.php +++ b/mod/item.php @@ -35,7 +35,7 @@ function item_post(&$a) { call_hooks('post_local_start', $_POST); - $api_source = ((x($_POST,'api_source')) ? true : false); + $api_source = ((x($_POST,'api_source') && $_POST['api_source']) ? true : false); /** * Is this a reply to something? |