fix a mysql error which popped up in the dbfail log
This commit is contained in:
parent
655b6445d5
commit
7f3f981d96
@ -39,7 +39,7 @@ function settings_post(&$a) {
|
|||||||
if(! local_user())
|
if(! local_user())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// logger('mod_settings: ' . print_r($_REQUEST,true));
|
// logger('mod_settings: ' . print_r($_REQUEST,true));
|
||||||
|
|
||||||
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
|
||||||
return;
|
return;
|
||||||
|
@ -199,14 +199,14 @@ function thing_init(&$a) {
|
|||||||
if(! $profile['is_default']) {
|
if(! $profile['is_default']) {
|
||||||
$arr['item_private'] = true;
|
$arr['item_private'] = true;
|
||||||
$str = '';
|
$str = '';
|
||||||
$r = q("select abook_hash from abook where abook_channel = %d and abook_profile = '%s'",
|
$r = q("select abook_xchan from abook where abook_channel = %d and abook_profile = '%s'",
|
||||||
intval(local_user()),
|
intval(local_user()),
|
||||||
dbesc($profile_guid)
|
dbesc($profile_guid)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
$arr['allow_cid'] = '';
|
$arr['allow_cid'] = '';
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$arr['allow_cid'] .= '<' . $rr['abook_hash'] . '>';
|
$arr['allow_cid'] .= '<' . $rr['abook_xchan'] . '>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$arr['allow_cid'] = '<' . get_observer_hash() . '>';
|
$arr['allow_cid'] = '<' . get_observer_hash() . '>';
|
||||||
|
Reference in New Issue
Block a user