Fix stupid update query bug
This commit is contained in:
parent
7ad5943b41
commit
e9e0b0ad80
@ -310,7 +310,7 @@ sub user_assign_role {
|
|||||||
# update its touched timestamp
|
# update its touched timestamp
|
||||||
} else {
|
} else {
|
||||||
my $oldh = $self -> {"dbh"} -> prepare("UPDATE ".$self -> {"settings"} -> {"database"} -> {"metadata_roles"}."
|
my $oldh = $self -> {"dbh"} -> prepare("UPDATE ".$self -> {"settings"} -> {"database"} -> {"metadata_roles"}."
|
||||||
SET touched = UNIX_TIMESTAMP(),
|
SET touched = UNIX_TIMESTAMP()
|
||||||
WHERE id = ?");
|
WHERE id = ?");
|
||||||
$rows = $oldh -> execute($role -> {"id"});
|
$rows = $oldh -> execute($role -> {"id"});
|
||||||
return $self -> self_error("Unable to perform metadata role update: ". $self -> {"dbh"} -> errstr) if(!$rows);
|
return $self -> self_error("Unable to perform metadata role update: ". $self -> {"dbh"} -> errstr) if(!$rows);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user