diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-11 03:08:57 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-11 03:08:57 +0000 |
commit | 7a6b5b4a61f28c9633e5775a25c04c63f983df5e (patch) | |
tree | ec48a6ad42b149576427d27ead9f967f902c39d0 /lib/class/catalog.class.php | |
parent | c0f55e26b29d5115f0d71a6583035acf3327cffc (diff) | |
download | ampache-7a6b5b4a61f28c9633e5775a25c04c63f983df5e.tar.gz ampache-7a6b5b4a61f28c9633e5775a25c04c63f983df5e.tar.bz2 ampache-7a6b5b4a61f28c9633e5775a25c04c63f983df5e.zip |
fixed display on catalog if no add/update has been performed, fixed the user functions I broke earlier
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r-- | lib/class/catalog.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 79203977..21d725db 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -113,8 +113,8 @@ class Catalog { $this->f_name = truncate_with_ellipsis($this->name,Config::get('ellipse_threshold_title')); $this->f_name_link = '<a href="' . Config::get('web_path') . '/admin/catalog.php?action=show_customize_catalog&catalog_id=' . $this->id . '" title="' . scrub_out($this->name) . '">' . scrub_out($this->f_name) . '</a>'; $this->f_path = truncate_with_ellipsis($this->path,Config::get('ellipse_threshold_title')); - $this->f_update = date('d/m/Y h:i',$this->last_update); - $this->f_add = date('d/m/Y h:i',$this->last_add); + $this->f_update = $this->last_update ? date('d/m/Y h:i',$this->last_update) : _('Never'); + $this->f_add = $this->last_add ? date('d/m/Y h:i',$this->last_add) : _('Never'); } // format |