Fix categories bug

When using the string type,
$typeid == 1 matched all strings making other conditions ineffective.
Updated category fix

Categories ID can be passed as strings
PSR code formatting
Fix missing $user in create method
Merge pull request #1860 from FHenry/3.5

Fix missing $user in create method
Fix: list event view lost type event filter
save code event
Merge pull request #1815 from GPCsolutions/catbug

Fix categories bug
Merge pull request #1862 from FHenry/3.5

Fix: list event view lost type event filter
Add missing image into amarok theme
Fix: Filter on direction of payment mode was not working.

Conflicts:
	htdocs/core/class/html.form.class.php
	htdocs/fourn/facture/fiche.php
Merge pull request #1865 from FHenry/3.5

Add missing image into amarok theme
Fix: SQL injection
Merge branch '3.5' of git@github.com:Dolibarr/dolibarr.git into 3.5
Fix: typo on debian files
[ bug #1591 ] Linked object block shows Total HT/TTC even if not having permission to read them
[ bug #1589 ] Menu type in "Edit menu" page is not translated
[ bug #1577 ] When creating new Private individual third, selected third type is ignored
[ bug #1555 ] Update accountancy code of products does not throw PRODUCT_MODIFY trigger
[ bug #1548 ] Supplier payment card shows type in French
[ bug #1546 ] Incorrect page number when searching in the list of bank transactions