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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2031 in /var/www/codoforum/sys/CODOF/Service/BadgeService.php:110 Stack trace: #0 /var/www/codoforum/sys/CODOF/Service/BadgeService.php(110): PDOStatement->execute(Array) #1 /var/www/codoforum/sys/CODOF/Forum/Post.php(627): CODOF\Service\BadgeService->getRewardedBadgesForUsers(Array) #2 /var/www/codoforum/sys/CODOF/Forum/Post.php(69): CODOF\Forum\Post->gen_posts_arr(Array) #3 /var/www/codoforum/sys/Controller/Ajax/forum/topic.php(90): CODOF\Forum\Post->get_posts(11526, 20) #4 /var/www/codoforum/sys/Controller/forum.php(476): Controller\Ajax\forum\topic->get_posts(11526, 1, Array) #5 /var/www/codoforum/routes.php(506): Controller\forum->topic(11526, 'post-53304') #6 [internal function]: {closure}(11526, 'ierenderer-vers...', 'post-53304') #7 /var/www/codoforum/sys/CODOF/Router/Router.php(91): call_user_func_array(Object(Closure), Array) #8 /var/www/codoforum/sys/CODOF/Router/Router.php(56): CODOF\Router\Router::_dispatch(Object(FastRoute\Dispatcher\GroupC in /var/www/codoforum/sys/CODOF/Service/BadgeService.php on line 110