|
...
|
...
|
@@ -36,6 +36,8 @@ if(empty($favorites)) accessDenied( );
|
|
36
|
36
|
$edit = isset($_GET['edit']) && isNumber($_GET['edit']) ? $_GET['edit'] : false;
|
|
37
|
37
|
$author = explode(",", $add);
|
|
38
|
38
|
$author = array_filter($author, "isNumber");
|
|
|
39
|
+ $array_pennames = array();
|
|
|
40
|
+ $pennames = '';
|
|
39
|
41
|
if(($add || $edit || $delete) && !isMEMBER) accessDenied( );
|
|
40
|
42
|
|
|
41
|
43
|
if(isMEMBER && $uid == USERUID) {
|
|
...
|
...
|
@@ -69,9 +71,9 @@ if(empty($favorites)) accessDenied( );
|
|
69
|
71
|
else {
|
|
70
|
72
|
$pQuery = dbquery("SELECT "._PENNAMEFIELD." as penname FROM "._AUTHORTABLE." WHERE ".findclause(_UIDFIELD, $author));
|
|
71
|
73
|
while($pRes = dbassoc($pQuery)) {
|
|
72
|
|
- $pennames[] = $pRes['penname'];
|
|
|
74
|
+ $array_pennames[] = $pRes['penname'];
|
|
73
|
75
|
}
|
|
74
|
|
- $pennames = implode(", ", $pennames);
|
|
|
76
|
+ $pennames = implode(", ", $array_pennames);
|
|
75
|
77
|
}
|
|
76
|
78
|
$output = "<div class='sectionheader'>"._ADDTOFAVORITES.": ".$pennames."</div>";
|
|
77
|
79
|
}
|
|
...
|
...
|
@@ -86,9 +88,9 @@ if(empty($favorites)) accessDenied( );
|
|
86
|
88
|
$author = array($edit);
|
|
87
|
89
|
$pQuery = dbquery("SELECT "._PENNAMEFIELD." as penname FROM "._AUTHORTABLE." WHERE ".findclause(_UIDFIELD, $author));
|
|
88
|
90
|
while($pRes = dbassoc($pQuery)) {
|
|
89
|
|
- $pennames[] = $pRes['penname'];
|
|
|
91
|
+ $array_pennames[] = $pRes['penname'];
|
|
90
|
92
|
}
|
|
91
|
|
- $pennames = implode(", ", $pennames);
|
|
|
93
|
+ $pennames = implode(", ", $array_pennames);
|
|
92
|
94
|
$output .= "<div class='sectionheader'>"._ADDTOFAVORITES.": ".$pennames."</div>";
|
|
93
|
95
|
}
|
|
94
|
96
|
}
|