Skip to content

Commit

Permalink
Update HitDAO.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rdorado committed Nov 12, 2018
1 parent ea20a96 commit 39a3496
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/HitDAO.php
Expand Up @@ -39,11 +39,10 @@ public static function checkHitTable($pdo, $config) {
* @param $config Configuration
*
*/
public static function countHit($pdo, $config, $id, $options = []) {
public static function countHit($pdo, $config, $id, $url) {
$db_hit_table = $config->getHitTableName();
$db_url_table = $config->getUrlTableName();


$stmt = $pdo->prepare("UPDATE $db_hit_table SET count = count + 1 WHERE id = ?");
$stmt->execute([$id]);
if ($stmt->rowCount()==0) {
Expand Down

0 comments on commit 39a3496

Please sign in to comment.