diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2010-03-01 12:47:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2010-03-01 12:47:15 +0000 |
commit | d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71 (patch) | |
tree | 7715b173e393cbcbf5c53452209f4a377032e760 /lib/class/user.class.php | |
parent | 45ea1a80fa9c7b7eb0c21677962feac9b4bd6c35 (diff) | |
download | ampache-d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71.tar.gz ampache-d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71.tar.bz2 ampache-d8e8ec2b79c6e7a527f0c1f41f0f74d3dccc3b71.zip |
Update defaults for new installs (extending default timeouts) fix installation and PHP warning on no ip history
Diffstat (limited to 'lib/class/user.class.php')
-rw-r--r-- | lib/class/user.class.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php index 27d901bf..60c605fc 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -726,8 +726,12 @@ class User extends database_object { $this->f_useage = round($total,2) . $name; /* Get Users Last ip */ - $data = $this->get_ip_history(1); - $this->ip_history = inet_ntop($data['0']['ip']); + if (count($data = $this->get_ip_history(1))) { + $this->ip_history = inet_ntop($data['0']['ip']); + } + else { + $this->ip_history = _('Not Enough Data'); + } } // format_user |