]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_confirm.php
Edited view/sv/registrations-top.tpl via GitHub
[friendica.git] / mod / dfrn_confirm.php
index 6b9bbfe133b1adf22137ab05e5bf08c2255cc3cb..1b42c13b8ac8203984e5fb3df404c18b5551deeb 100644 (file)
@@ -432,13 +432,11 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                                $arr['object'] .= '<link>' . xmlify('<link rel="alternate" type="text/html" href="' . $contact['url'] . '" />' . "\n");
                                $arr['object'] .= xmlify('<link rel="photo" type="image/jpeg" href="' . $contact['thumb'] . '" />' . "\n");
                                $arr['object'] .= '</link></object>' . "\n";
+                               $arr['last-child'] = 1;
 
                                $i = item_store($arr);
-
-                               $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
-
-                           proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"activity\" \"$i\" &",
-                       array(),$foo));
+                               if($i)
+                               proc_run('php',"include/notifier.php","activity","$i");
 
                        }