Warning: str_repeat(): Second argument has to be greater than or equal to 0 in /var/www/lms/html/forum/sys/CODOF/Service/BadgeService.php on line 105

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2031 No data supplied for parameters in prepared statement in /var/www/lms/html/forum/sys/CODOF/Service/BadgeService.php:110 Stack trace: #0 /var/www/lms/html/forum/sys/CODOF/Service/BadgeService.php(110): PDOStatement->execute() #1 /var/www/lms/html/forum/sys/CODOF/Forum/Post.php(627): CODOF\Service\BadgeService->getRewardedBadgesForUsers() #2 /var/www/lms/html/forum/sys/CODOF/Forum/Post.php(69): CODOF\Forum\Post->gen_posts_arr() #3 /var/www/lms/html/forum/sys/Controller/Ajax/forum/topic.php(90): CODOF\Forum\Post->get_posts() #4 /var/www/lms/html/forum/sys/Controller/forum.php(476): Controller\Ajax\forum\topic->get_posts() #5 /var/www/lms/html/forum/routes.php(506): Controller\forum->topic() #6 [internal function]: {closure}() #7 /var/www/lms/html/forum/sys/CODOF/Router/Router.php(91): call_user_func_array() #8 /var/www/lms/html/forum/sys/CODOF/Router/Router.php(56): CODOF\Router\Router::_dispatch() #9 /var/www/lms/html/forum/routes.php(892): CODOF\Route in /var/www/lms/html/forum/sys/CODOF/Service/BadgeService.php on line 110