]> git.mxchange.org Git - friendica.git/commitdiff
cronhooks broken
authorFriendika <info@friendika.com>
Tue, 16 Aug 2011 05:23:17 +0000 (22:23 -0700)
committerFriendika <info@friendika.com>
Tue, 16 Aug 2011 05:23:17 +0000 (22:23 -0700)
include/cronhooks.php
mod/item.php

index a4eb5fbb3e62f3671b8a99580e3be592c9126aa2..37541f013e97abbd9b912459f2b2d461abf8946f 100644 (file)
@@ -1,3 +1,5 @@
+<?php
+
 require_once("boot.php");
 
 
index 54472e268669bae5b0a6a29f2e9e0dff2fb48443..ef0b232d56b12b96374f3c2356fed80be5b24afa 100644 (file)
@@ -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?