]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
added spaces + curly braces
[friendica.git] / mod / profile_photo.php
index 371effd0cb0e961cd01675c899cdc53a64ade8b0..70ea45afa4e923003e97e853687f9dec52571d00 100644 (file)
@@ -124,8 +124,9 @@ function profile_photo_post(&$a) {
                                info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL);
                                // Update global directory in background
                                $url = App::get_baseurl() . '/profile/' . $a->user['nickname'];
-                               if($url && strlen(get_config('system','directory')))
+                               if ($url && strlen(get_config('system','directory'))) {
                                        proc_run(PRIORITY_LOW, "include/directory.php", $url);
+                               }
 
                                require_once('include/profile_update.php');
                                profile_change();
@@ -223,8 +224,9 @@ function profile_photo_content(&$a) {
 
                        // Update global directory in background
                        $url = $_SESSION['my_url'];
-                       if($url && strlen(get_config('system','directory')))
+                       if ($url && strlen(get_config('system','directory'))) {
                                proc_run(PRIORITY_LOW, "include/directory.php", $url);
+                       }
 
                        goaway(App::get_baseurl() . '/profiles');
                        return; // NOTREACHED