]> git.mxchange.org Git - friendica.git/blobdiff - mod/like.php
Rework mod/match
[friendica.git] / mod / like.php
index 97eaca163be125d9e24f3e30da6fe02172e7808d..5ea30a3ffef985ba5d8cc27d4f091588f173341a 100644 (file)
@@ -27,7 +27,7 @@ function like_content(App $a) {
        }
 
        // See if we've been passed a return path to redirect to
-       $return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : '');
+       $return_path = defaults($_REQUEST, 'return', '');
 
        like_content_return($a, $return_path);
        killme(); // NOTREACHED