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(65, 0) #4 /var/www/codoforum/sys/Controller/forum.php(476): Controller\Ajax\forum\topic->get_posts(65, 0, Array) #5 /var/www/codoforum/routes.php(506): Controller\forum->topic(65, 1) #6 [internal function]: {closure}(65, 'pegasus-mail-fo...') #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\GroupCountBased)) #9 /var/www/codoforum/rout in /var/www/codoforum/sys/CODOF/Service/BadgeService.php on line 110