Skip to content

Commit

Permalink
fix visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
sutriadi committed Jan 26, 2014
1 parent b7dccf6 commit 25e0ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/contents/visitor.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function setCounter($str_member_ID) {
$member_name = $_d['member_name'];
$member_name = preg_replace("/'/", "\'", $member_name);
$photo = trim($_d['member_image'])?trim($_d['member_image']):'person.png';
$_institution = $dbs->escape_string(trim($_d['inst_name']))?:null;
$_institution = $dbs->escape_string(trim($_d['inst_name']))?$dbs->escape_string(trim($_d['inst_name'])):null;

$_checkin_date = date('Y-m-d H:i:s');
$_i = $dbs->query("INSERT INTO visitor_count (member_id, member_name, institution, checkin_date) VALUES ('$member_id', '$member_name', '$_institution', '$_checkin_date')");
Expand Down

0 comments on commit 25e0ddd

Please sign in to comment.