fix some issues that showed up in the logs.
This commit is contained in:
@@ -1306,6 +1306,13 @@ function item_store($arr,$force_parent = false) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Don't let anybody set these, either intentionally or accidentally
|
||||
|
||||
if(array_key_exists('id',$arr))
|
||||
unset($arr['id']);
|
||||
if(array_key_exists('parent',$arr))
|
||||
unset($arr['parent']);
|
||||
|
||||
$arr['lang'] = detect_language($arr['body']);
|
||||
|
||||
$allowed_languages = get_pconfig($arr['uid'],'system','allowed_languages');
|
||||
|
||||
Reference in New Issue
Block a user