Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjasoturi committed Aug 11, 2021
1 parent 8bb293a commit d32f614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/user_tutorial.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function user_tutorial($user_id) {
$statement = $dbh->prepare( $query );
$statement->execute([":user_id"=>$user_id]);
$res = $statement->fetch();
if($res->rowCount() > 0) $result = $res['tutorial'];
if($statement->rowCount() > 0) $result = $res['tutorial'];
else $result = 0;
debug_log("Result: ".$result);
return $result;
Expand Down

0 comments on commit d32f614

Please sign in to comment.