Fixed mysqli errors in class_lib.php

msqli_error() requires a parameter.