diff options
Diffstat (limited to 'lib/class/genre.class.php')
-rw-r--r-- | lib/class/genre.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/genre.class.php b/lib/class/genre.class.php index 5d4e13d1..06b2bce5 100644 --- a/lib/class/genre.class.php +++ b/lib/class/genre.class.php @@ -38,7 +38,7 @@ class Genre { function Genre($genre_id=0) { if ($genre_id > 0) { - $this->id = $genre_id; + $this->id = intval($genre_id); $info = $this->_get_info(); $this->name = $info['name']; } |