[Kolab-devel] Known issue? Kolab 3.0 webadmin "Internal error"
Chloé Desoutter
chloe.desoutter at atasta.net
Thu Jul 11 14:07:15 CEST 2013
More Greetings,
Le 11/07/2013 13:53, Chloé Desoutter a écrit :
> This will always err out as $result is a non-query (an UPDATE), hence
> query will not return anything.
>
> My proposed fix follows:
>
> $result = $this->db->query("UPDATE {$type}_types SET "
> . implode(', ', $query) . " WHERE id = " .
> intval($postdata['id']));
>
> if (!$this->db->affected_rows()) {
> return false;
> }
>
> It tests whether a row has been modified by the current query (it should
> have!) and if not, it errs out.
It appears that in addition I was missing the "used_for" field in the
user_types table.
It most probably caused part of the bug.
Please consider my previous mail void.
--
Chloé Desoutter
Directrice de production, ATASTA NET
More information about the devel
mailing list