Fix: mb_strtolower function does not exists on all PHP versions.

Conflicts:
	htdocs/core/lib/pdf.lib.php
Fix: Log of leaves was broken on some mysql versions.
Merge remote-tracking branch 'origin/3.5' into 3.6