Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Typo in postgreSQL updateRole (%b instead of %bin)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 29, 2014
1 parent 7ced6d3 commit 48b2852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/conf.sql/class.sqlConfDriver.php
Expand Up @@ -715,7 +715,7 @@ public function updateRole($role, $userObject = null)
$row = dibi::query("SELECT [role_id] FROM [ajxp_roles] WHERE [role_id]=%s", $role->getId());
$res = $row->fetchSingle();
if($res != null){
dibi::query("UPDATE [ajxp_roles] SET [serial_role]=%b,[searchable_repositories]=%s WHERE [role_id]=%s", serialize($role), serialize($role->listAcls()), $role->getId());
dibi::query("UPDATE [ajxp_roles] SET [serial_role]=%bin,[searchable_repositories]=%s WHERE [role_id]=%s", serialize($role), serialize($role->listAcls()), $role->getId());
}
else{
dibi::query("INSERT INTO [ajxp_roles] ([role_id],[serial_role],[searchable_repositories]) VALUES (%s, %bin,%s)", $role->getId(), serialize($role), serialize($role->listAcls()));
Expand Down

0 comments on commit 48b2852

Please sign in to comment.