- if(count($r) && $r[0]['net-publish']) {
- $url = $a->get_baseurl() . '/profile/' . $user[0]['nickname'];
- if($url && strlen(get_config('system','directory')))
- proc_run('php',"include/directory.php","$url");
+ if (dbm::is_result($r) && $r[0]['net-publish']) {
+ $url = App::get_baseurl() . '/profile/' . $user[0]['nickname'];
+ if ($url && strlen(get_config('system','directory'))) {
+ proc_run(PRIORITY_LOW, "include/directory.php", $url);
+ }