Skip to content
Snippets Groups Projects
Commit 9ce6e293 authored by arnaud's avatar arnaud
Browse files

FIX bookmark's user change after update if the user hasn't superadmin right

parent 2386b79d
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,9 @@ if ($action == 'add' || $action == 'addproduct' || $action == 'update')
}
if ($action == 'update') $bookmark->fetch($_POST["id"]);
$bookmark->fk_user=$userid;
// Check if null because user not admin can't set an user and send empty value here.
if(!empty($userid))
$bookmark->fk_user=$userid;
$bookmark->title=$title;
$bookmark->url=$url;
$bookmark->target=$target;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment