Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

fix php Notice for unset $CONFIG['browscap'] #17

Merged
merged 1 commit into from
Mar 19, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix php Notice for unset $CONFIG['browscap']
  • Loading branch information
bymerej committed Mar 18, 2013
commit e2e60e3d5e80e474c3bb36c138dc504c9d315f91
2 changes: 1 addition & 1 deletion genetify/recorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function insert_new_visitor($ip_address)
// TODO: best delimiter?
$visitor['hash'] = md5(implode('', $visitor));

if ($CONFIG['browscap']) {
if (isset($CONFIG['browscap']) && $CONFIG['browscap']) {

//TODO: make optional
require_once('Browscap/Browscap.php');
Expand Down