]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
eradicate redundant get_uid function
[friendica.git] / mod / notifications.php
index 603c1117ccfbe53ee34fab797c5c8f25098ef463..d09ec5edeb24b461c607298ede82896e4b6fd447 100644 (file)
@@ -17,7 +17,7 @@ function notifications_post(&$a) {
                        WHERE `request-id` = %d 
                        AND `uid` = %d LIMIT 1",
                                intval($request_id),
-                               intval(get_uid())
+                               intval(local_user())
                );
        
                if(count($r)) {
@@ -33,7 +33,7 @@ function notifications_post(&$a) {
                        );      
                        $r = q("DELETE FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", 
                                intval($request_id),
-                               intval(get_uid())
+                               intval(local_user())
                        );
                        return;
                }