summaryrefslogtreecommitdiffstats
path: root/lib/class/genre.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-02-08 21:29:51 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-02-08 21:29:51 +0000
commit5343c30ff528ca886cd9a581d30cd9c6bfe9d2e4 (patch)
treef15cb58f7d71e2a588d9bb77aa8115f90a3963ed /lib/class/genre.class.php
parent2c21726d0f70357059d7c6ca75d5dec3e38d879b (diff)
downloadampache-5343c30ff528ca886cd9a581d30cd9c6bfe9d2e4.tar.gz
ampache-5343c30ff528ca886cd9a581d30cd9c6bfe9d2e4.tar.bz2
ampache-5343c30ff528ca886cd9a581d30cd9c6bfe9d2e4.zip
fixed a few more unescaped ids
Diffstat (limited to 'lib/class/genre.class.php')
-rw-r--r--lib/class/genre.class.php2
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'];
}