add_log( array('log_key'=>'mysqli_error', 'log_text'=>$arr['error_msg']) );
return false;

Bu koddaki yanlışlık nerde?