]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Frio - fix missing modal for editing albums
[friendica.git] / view / theme / frio / theme.php
index d2737a65ac7a421276f5d983090aa9af0a77c7c8..4e01289624e822e9c0eb944c64ff567429aa779d 100644 (file)
@@ -150,8 +150,18 @@ function frio_item_photo_menu(App $a, &$arr)
 function frio_contact_photo_menu(App $a, &$args)
 {
        $cid = $args['contact']['id'];
-       $pokelink = $args['menu']['poke'][1];
-       $pmlink = $args['menu']['pm'][1];
+
+       if (!empty($args['menu']['poke'])) {
+               $pokelink = $args['menu']['poke'][1];
+       } else {
+               $pokelink = '';
+       }
+
+       if (!empty($args['menu']['poke'])) {
+               $pmlink = $args['menu']['pm'][1];
+       } else {
+               $pmlink = '';
+       }
 
        // Set the the indicator for opening the status, profile and photo pages
        // in a new tab to false if the contact a dfrn (friendica) contact