From dfcd869f3748132755de63db9e7eabb6dee41af1 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 10 May 2008 07:14:38 +0000 Subject: tweaks the db updates and adds a few more charset translations to the db charset reset function --- lib/class/catalog.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/class/catalog.class.php') 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); -- cgit