Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$preset['active'] is 't' instead of an integer. #84

Open
jmerino-iib opened this issue Jul 24, 2014 · 0 comments
Open

$preset['active'] is 't' instead of an integer. #84

jmerino-iib opened this issue Jul 24, 2014 · 0 comments

Comments

@jmerino-iib
Copy link

Using:
Debian 7.6
roundcube 0.7.2-9+deb7u1
postgresql 8.4
rcmcarddav-carddav 0.9.2
davical 1.1.1-1

When a user logs in, roundcube drops an error:

[24-Jul-2014 13:22:23] MDB2 Error: invalid number (-11): _doQuery: [Error message: Could not execute statement]
[Last executed query: EXECUTE mdb2_statement_pgsql_7105263081f609afed9e7ee5d7388a0f268843695 ('Direcciones en la nube (Nombre Apellido1 Apellido2 addressbook)', '%u', '{BASE64}JXA=', 'https://caldav.server:443/caldav.php/username/addresses/', '1101', 't', 'nube01', '02:00:00')]
[Native message: ERROR:  invalid input syntax for integer: "t"
LÍNEA 1: ...s:443/caldav.php/bsoldevilla/addresses/', '1101', 't', 'nube...
                                                              ^]

I have solved it by inserting this code in carddav.php:

root@roundcube2:/var/lib/roundcube/plugins/carddav# diff carddav.php carddav.php.ORIG 
157,159d156
<                               if ( $preset['active'] == 't' ) {
<                                       $preset['active'] = 1;
<                               }

PD: Sorry about my english, my code, and my ignorance in the use of github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant