]> git.mxchange.org Git - friendica.git/blobdiff - mod/noscrape.php
Merge pull request #3483 from rabuzarus/20170522_-_frio_event_button_fix
[friendica.git] / mod / noscrape.php
index 33255f0fa4214e6c1df1dbb8897c3f778b598368..a269d7369af90b21ff7f518528afb75caf898e43 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
-function noscrape_init(App &$a) {
+use Friendica\App;
+
+function noscrape_init(App $a) {
 
        if($a->argc > 1)
                $which = $a->argv[1];
@@ -26,7 +28,6 @@ function noscrape_init(App &$a) {
        $keywords = str_replace(array('#',',',' ',',,'),array('',' ',',',','),$keywords);
        $keywords = explode(',', $keywords);
 
-       /// @TODO This query's result is not being used (see below), maybe old-lost code?
        $r = q("SELECT `photo` FROM `contact` WHERE `self` AND `uid` = %d",
                intval($a->profile['uid']));