little fix
This commit is contained in:
parent
3d51518a13
commit
9341f2c4d6
1 changed files with 2 additions and 2 deletions
|
@ -333,14 +333,14 @@ function dfrn_poll_post(&$a) {
|
||||||
else {
|
else {
|
||||||
|
|
||||||
// Update the writable flag if it changed
|
// Update the writable flag if it changed
|
||||||
|
logger('dfrn_poll: post request feed: ' . print_r($_POST,true),LOGGER_DATA);
|
||||||
if($dfrn_version >= 2.21) {
|
if($dfrn_version >= 2.21) {
|
||||||
if($perm === 'rw')
|
if($perm === 'rw')
|
||||||
$writable = 1;
|
$writable = 1;
|
||||||
else
|
else
|
||||||
$writable = 0;
|
$writable = 0;
|
||||||
|
|
||||||
if($writable != $contact['writable]) {
|
if($writable != $contact['writable']) {
|
||||||
q("UPDATE `contact` SET `writable` = %d WHERE `id` = %d LIMIT 1",
|
q("UPDATE `contact` SET `writable` = %d WHERE `id` = %d LIMIT 1",
|
||||||
intval($writable),
|
intval($writable),
|
||||||
intval($contact_id)
|
intval($contact_id)
|
||||||
|
|
Loading…
Reference in a new issue