Dolibarr/dolibarr — pull request #221 by rdoursenaud (2012-06-06 14:40:42+00:00)
Title: Fix first activation of some modules on PgSQL

This fixes the activation of some modules with PgSQL database.
Without, the resulting SQL query fails because the last parameter is empty.
This also applies to 3.2.

The main change is :
```php
// Max rowid can be empty if there is no record yet
if(empty($maxrowid)) $maxrowid=1;
```

The rest is indentation madness…