Loading plugins/content/content.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -383,8 +383,8 @@ namespace blogi { // Show approved comments dbpp::SQL csql; dbpp::DBResult cres; csql << "SELECT id,author_name,text,created FROM comments WHERE content_id=" << cid << " AND approved=true ORDER BY created ASC;"; csql << "SELECT id,author_name,text,created FROM comments WHERE content_id='" << cid << "' AND approved=true ORDER BY created ASC;"; int ccount = Args->database[tid]->exec(csql, cres); if(ccount > 0){ for(int ci = 0; ci < ccount; ++ci){ Loading Loading
plugins/content/content.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -383,8 +383,8 @@ namespace blogi { // Show approved comments dbpp::SQL csql; dbpp::DBResult cres; csql << "SELECT id,author_name,text,created FROM comments WHERE content_id=" << cid << " AND approved=true ORDER BY created ASC;"; csql << "SELECT id,author_name,text,created FROM comments WHERE content_id='" << cid << "' AND approved=true ORDER BY created ASC;"; int ccount = Args->database[tid]->exec(csql, cres); if(ccount > 0){ for(int ci = 0; ci < ccount; ++ci){ Loading