Skip to content
This repository
  • 5 commits
  • 2 files changed
  • 0 comments
  • 2 contributors
66  lib/MyProfile.class.php
@@ -20,33 +20,33 @@
20 20
 */ 
21 21
 class MyProfile {
22 22
 
23  
-    public $webid;
24  
-    public $base_uri;
25  
-    public $cache_dir;
26  
-    public $primarytopic;
27  
-    public $graph;
28  
-    public $profile;
29  
-    public $name;
30  
-    public $picture;
31  
-    public $feed_hash;
32  
-    public $user_hash;
33  
-    public $firstname;
34  
-    public $familyname;
35  
-    public $title;
36  
-    public $pic;
37  
-    public $nick;
38  
-    public $pingback;
39  
-    public $emails;
40  
-    public $sha1sums;
41  
-    public $homepages;
42  
-    public $blogs;
43  
-    public $workHPS;
44  
-    public $schoolHPS;
45  
-    public $curprojs;
46  
-    public $pastprojs;
47  
-    public $knows;
48  
-    public $interests;
49  
-    public $certs;
  23
+    private $webid;
  24
+    private $base_uri;
  25
+    private $cache_dir;
  26
+    private $primarytopic;
  27
+    private $graph;
  28
+    private $profile;
  29
+    private $name;
  30
+    private $picture;
  31
+    private $feed_hash;
  32
+    private $user_hash;
  33
+    private $firstname;
  34
+    private $familyname;
  35
+    private $title;
  36
+    private $pic;
  37
+    private $nick;
  38
+    private $pingback;
  39
+    private $emails;
  40
+    private $sha1sums;
  41
+    private $homepages;
  42
+    private $blogs;
  43
+    private $workHPS;
  44
+    private $schoolHPS;
  45
+    private $curprojs;
  46
+    private $pastprojs;
  47
+    private $knows;
  48
+    private $interests;
  49
+    private $certs;
50 50
 
51 51
     // Build the selectors for adding more form content
52 52
     function __construct($webid, $base_uri) {
@@ -399,7 +399,17 @@ function show_wall($user_hash) {
399 399
                 $ret .= "<tr>\n";
400 400
                 $ret .= "<td><small>";
401 401
                 // show options only if we are the source of the post
402  
-                if (($_SESSION['webid'] == $row['from_uri']) || (($_SESSION['webid'] == $row['to_uri']) && (isset($_REQUEST['user'])) && ($_REQUEST['user'] != 'local'))) {                    
  402
+                if (
  403
+                    isset($_SESSION['webid'])
  404
+                    && (
  405
+                        ($_SESSION['webid'] == $row['from_uri'])
  406
+                        || (
  407
+                            ($_SESSION['webid'] == $row['to_uri'])
  408
+                            && (isset($_REQUEST['user']))
  409
+                            && ($_REQUEST['user'] != 'local')
  410
+                        )
  411
+                    )
  412
+                ) {
403 413
                     $add = '?user=' . $user_hash;
404 414
                     // add option to edit post
405 415
                     $ret .= "<a onClick=\"updateWall('message_text_" . $row['id'] . "', 'wall.php" . $add . "', '" . $row['id'] . "')\" style=\"cursor: pointer;\">Edit</a>";
1  messages.php
@@ -176,7 +176,6 @@
176 176
                         $ret .= "<p>Details:</p>\n";
177 177
                         $ret .= "</p>" . $return . "</p>\n";
178 178
                     }
179  
-*/
180 179
 
181 180
                     break;
182 181
                 }

No commit comments for this range

Something went wrong with that request. Please try again.