diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 07:14:38 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 07:14:38 +0000 |
commit | dfcd869f3748132755de63db9e7eabb6dee41af1 (patch) | |
tree | be3dd469962b3b40a7b0462492a44e6586e12e5f /lib/class/catalog.class.php | |
parent | 9393b2afdf8e6222f06aec019f872c02c0a2c19f (diff) | |
download | ampache-dfcd869f3748132755de63db9e7eabb6dee41af1.tar.gz ampache-dfcd869f3748132755de63db9e7eabb6dee41af1.tar.bz2 ampache-dfcd869f3748132755de63db9e7eabb6dee41af1.zip |
tweaks the db updates and adds a few more charset translations to the db charset reset function
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r-- | lib/class/catalog.class.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index c6d3e1a0..72a24b5f 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -1915,11 +1915,8 @@ class Catalog { /* If not found create */ elseif (!$readonly) { - $prefix_txt = 'NULL'; - if ($prefix) { - $prefix_txt = "'$prefix'"; - } + $prefix_txt = $prefix ? "'$prefix'" : 'NULL'; $sql = "INSERT INTO `album` (`name`, `prefix`,`year`,`disk`) VALUES ('$album',$prefix_txt,'$album_year','$album_disk')"; $db_results = Dba::query($sql); |